Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

simpleleveldb does not correctly state Content-Type #21

Open
danielhfrank opened this issue Dec 29, 2011 · 0 comments
Open

simpleleveldb does not correctly state Content-Type #21

danielhfrank opened this issue Dec 29, 2011 · 0 comments

Comments

@danielhfrank
Copy link

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant