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

>> On Thu, Apr 8, 2010 at 10:45 AM, J Chris Anderson <[email protected]> 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

Reply via email to