-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle GET with open_revs #4
Comments
I was unable to replicate this bug, because CouchDB sent me parseable JSON when I tried this. I'm curious to see what kind of response you're getting from CouchDB, so could you use curl to make a similar request, and paste the response that CouchDB gives you, please? curl 'http://localhost:5984/test/da173e45950d5a80a20b54600c000fd1?open_revs=all' ^Do something like that w/ the db and id replaced to fit your database and paste the result here. |
From couchdb-1.1.0+COUCHDB-1152 OTP/R14B01+OTP-9139 Win32
When there are attachments, the attachment stub has |
Thanks. I'm going to try to make some conflicts happen in my db to try to make it send me a multipart/mixed response. |
I think it's only with version 1.1 that it's started doing it: 1.0.3 just returns a JSON array. |
That's good to know. I'll try to accomodate both if I can. |
At the moment you can do the following, which will not work as the JSON parser is given the raw multi-part response.
$db->open_doc($id, {'open_revs' => 'all'})->recv;
Presumably this should return an array of all the versions (and probably ignore any attachments in the response).
The text was updated successfully, but these errors were encountered: