couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ning Tan <>
Subject Re: Do change notification (filters) support HTTP verbs other than GET?
Date Mon, 12 Apr 2010 19:32:16 GMT
On Thu, Apr 8, 2010 at 7:11 PM, J Chris Anderson <> wrote:
> On Apr 8, 2010, at 4:06 PM, Ning Tan wrote:
>>> On Thu, Apr 8, 2010 at 10:45 AM, J Chris Anderson <> wrote:
>>>> If you want to try with a POST instead of a GET, you can edit one line in
>>>> 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!)

Hi Chris, I added a test case in change.js as well as the httpd erl
file as you suggested. Should I create a ticket and attach my patch or
e-mail the patch to you directly?


View raw message