wohali commented on issue #620: POST and ETag header URL: https://github.com/apache/couchdb/issues/620#issuecomment-312908191 That may be true, but we did it in 1.6: ``` $ curl -X PUT http://127.0.0.1:5984/foo {"ok":true} $ curl --verbose -X POST -H "Content-Type: application/json" http://127.0.0.1:5984/foo -d '{"am":"joan"}' * Hostname was NOT found in DNS cache * Trying 127.0.0.1... * Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0) > POST /foo HTTP/1.1 > User-Agent: curl/7.38.0 > Host: 127.0.0.1:5984 > Accept: */* > Content-Type: application/json > Content-Length: 13 > * upload completely sent off: 13 out of 13 bytes < HTTP/1.1 201 Created * Server CouchDB/1.6.2 (Erlang OTP/17) is not blacklisted < Server: CouchDB/1.6.2 (Erlang OTP/17) < Location: http://127.0.0.1:5984/foo/c39513ad5ec7439a9880855224000da0 < ETag: "1-08055301094689837203c2862ea2bfe2" < Date: Tue, 04 Jul 2017 15:44:47 GMT < Content-Type: text/plain; charset=utf-8 < Content-Length: 95 < Cache-Control: must-revalidate < {"ok":true,"id":"c39513ad5ec7439a9880855224000da0","rev":"1-08055301094689837203c2862ea2bfe2"} * Connection #0 to host 127.0.0.1 left intact ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
