incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Chris Anderson <jch...@gmail.com>
Subject Re: Do change notification (filters) support HTTP verbs other than GET?
Date Thu, 08 Apr 2010 23:11:33 GMT

On Apr 8, 2010, at 4:06 PM, Ning Tan wrote:

>> On Thu, Apr 8, 2010 at 10:45 AM, J Chris Anderson <jchris@gmail.com> wrote:
>>> 
>>> If you want to try with a POST instead of a GET, you can edit one line in couch_httpd_db.erl
>>> handle_changes_req(#httpd{method='GET'}=Req, Db) ->
>>> to:
>>> handle_changes_req(Req, Db) ->
>>> which should allow for POSTs to _changes.
> 
> I did this and was able to see the body in my function also.
> 
> Unfortunately, the same hanging behavior persists as long as the
> request has a body. I'll see if I can post a script that mimics what
> I'm doing soon. Meanwhile, it's pretty simple. Just create a filter
> function that simply returns true and have a body in the changes
> request against that function.

This should be pretty trivial to add as a test case to the change.js test that ships with
CouchDB. If you write that test you get your name in our THANKS file. (Maybe not the most
glorious reward, but still pretty solid!)

Chris
Mime
View raw message