Re: Simple RESTful API - make a patch

"Joseph S. Tate" <[email protected]> Thu, 10 Nov 2016 19:22:00 +0000
Newsgroups gmane.comp.python.cherrypy
Message-ID <CA+WDQbEctACcA0GkPJbHPu=gaM6R+Yj8_SHXNVb+8APtS+6qgg@mail.gmail.com>
It looks like there's at least one bug in CherryPy. _cprequest.py
needs to be updated to look like this:

    methods_with_bodies = ('POST', 'PUT', 'PATCH')

But then I'm getting an error on the JSON document. I hope this is enough
to help you get going.

If you have time to submit a pull request with this change (and hopefully a
test), I'd appreciate it.

On Thu, Nov 10, 2016 at 1:51 PM Joseph S. Tate <[email protected]>
wrote:

> When I try to reproduce via "telnet localhost 8080", the body line gets
> pasted to my prompt, so cherrypy is terminating the request before the body
> is sent. So it's likely a configuration error of some kind.
>
> I'm going to pursue that for a bit, but wanted to report that before you
> go diving into something in the request handler itself.
>
>
> On Thu, Nov 10, 2016 at 11:10 AM Kearney Taaffe
> <snipped>
>

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.