CouchDB._getPage should also specify "Content-type" header in kwargs
Bug #724474 reported by
Nathaniel Gephart
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Paisley |
New
|
Undecided
|
Unassigned |
Bug Description
While trying to query a CouchDB database via a Twisted application, I continually got 415 "Unsupported media type" errors. After debugging my app, I found that the only place where the headers for a request to the CouchDB server were defined was in _getPage. I added a "Content-type" key to kwargs, setting its value to "application/json", and it worked.
My software versions are:
Paisley 0.1
CouchDB 1.0.1
Twisted 10.1.0
Ubuntu 10.10
To post a comment you must log in.
Hi Nathaniel,
Could you give it a shot with the 0.3 code on the new official repo: https:/ /github. com/smcq/ paisley
If it's still a problem, please fork us on GH and send us pull request and we'll get it merged in.
Thank you!
-J