simpleleveldb does not correctly state Content-Type #21

danielhfrank opened this Issue Dec 29, 2011 · 0 comments


1 participant
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment