Closed KodjoSuprem closed 9 years ago
Today I can not get time for this project, but tomorrow I'll fix this bug and few others, and I'll upload a new version.
Thank you very much for reporting these bugs!
Hmm that is the version of requests you are used for this test?
(Seems 1.2 is sligty buggy with python3, py-couchtdb tests pass with 1.1 but 1.2 breaks a lot of tests with python3 -.-)
https://github.com/kennethreitz/requests/issues/1250 https://github.com/kennethreitz/requests/pull/1338
I recomend use 1.1 version of requests because 1.2 breaks api and has incorrect handling of headers with python3
@KodjoSuprem This problem is still relevant?
In Python 3 byte / str problem
requests/models the folowing code tests
if isinstance(data, str) or isinstance(data, builtin_str) or hasattr(data, 'read'):
the self.headers dict will contain
resulting a couchdb protocol error:
{"error":"bad_content_type","reason":"Content-Type must be application/json"}