simplehttp icon indicating copy to clipboard operation
simplehttp copied to clipboard

simpleleveldb does not correctly state Content-Type

Open danielhfrank opened this issue 14 years ago • 0 comments

http = httpclient.HTTPClient()
url = "http://localhost:13731/get"
params = urllib.urlencode({'key':'f00'})
url += '?' + params
resp = http.fetch(url)
print resp.headers.get('Content-Type', "No content type!") # prints: text/html; charset=ISO-8859-1

Should be application/json or text/javascript

danielhfrank avatar Dec 29 '11 17:12 danielhfrank