couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <>
Subject PUT and rev query string
Date Mon, 11 May 2009 20:56:27 GMT
I notice that:

* DELETE lets you specify ...?rev=xxxx as part of the URL

* But PUT doesn't (it seems to ignore it)

* Both of them let you use an If-Match: xxxx header instead

I was just wondering if it's intentional that PUT doesn't honour ?rev=xxxx.
Admittedly, if it did, there would then be *three* different ways of
specifying the same thing (including _rev in the JSON body). However it's
often more convenient to add a query string than to add an extra header,
and it seems a bit inconsistent at the moment.

This isn't a big problem for me, but just thought it was worth a mention.



View raw message