MCPcopy Create free account
hub / github.com/apache/solr / decodeUTF8

Function decodeUTF8

dev-tools/scripts/smokeTestRelease.py:126–127  ·  view source on GitHub ↗
(bytes)

Source from the content-addressed store, hash-verified

124def load(urlString):
125 try:
126 raw_request = urllib.request.Request(urlString)
127 raw_request.add_header('User-Agent', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0')
128 raw_request.add_header('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8')
129 content = urllib.request.urlopen(raw_request).read().decode('utf-8')
130 except Exception as e:

Callers 1

checkJARMetaDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…