Skip to content

Instantly share code, notes, and snippets.

@tamtam180
Created April 9, 2012 13:55
Show Gist options
  • Save tamtam180/2343583 to your computer and use it in GitHub Desktop.
Save tamtam180/2343583 to your computer and use it in GitHub Desktop.
AvocadoDB, Http response json was broken.
[tamtam@tamsvr20 tmp]$ curl --data @- -X POST --dump - "http://127.0.0.1:8529/document?collection=unit_test_issue35"
{"xx": "xx\""}
HTTP/1.1 202 Accepted
etag: "1811904640"
connection: Keep-Alive
content-type: application/json; charset=utf-8
server: triagens GmbH High-Performance HTTP Server
location: /document/1809181757/1811904640
content-length: 63
{"error":false,"_id":"1809181757/1811904640","_rev":1811904640}
[tamtam@tamsvr20 tmp]$ curl -X GET --dump - http://127.0.0.1:8529/document/1809181757/1811904640
HTTP/1.1 200 OK
etag: "1811904640"
connection: Keep-Alive
content-type: application/json; charset=utf-8
server: triagens GmbH High-Performance HTTP Server
content-length: 60
{"xx":"xx"","_id":"1809181757/1811904640","_rev":1811904640}
↑ here
no handling quote.
@tamtam180
Copy link
Author

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