iftekharjoy / webapp-improved

Automatically exported from code.google.com/p/webapp-improved
Other
0 stars 0 forks source link

Patch for /webapp2.py #69

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Add PATCH to WSGIApplication.allowed_methods

Original issue reported on code.google.com by pro...@google.com on 27 Oct 2012 at 7:55

Attachments:

GoogleCodeExporter commented 8 years ago
I also tested this approach and seems to work, would be awesome to have it 
include in the next release

Original comment by marianosimone on 11 Apr 2013 at 1:32

GoogleCodeExporter commented 8 years ago
Yes. Pretty please :)

Original comment by dhermes@google.com on 15 Apr 2013 at 10:53

GoogleCodeExporter commented 8 years ago
Please add this for all the BackboneJS developers!

Original comment by m...@showandtellapp.com on 2 Aug 2013 at 3:27

GoogleCodeExporter commented 8 years ago
Until the patch gets applied, the easiest workaround is to subclass 
`webapp.WSGIApplication`.

    class WSGIApplication(webapp.WSGIApplication):
        allowed_methods = frozenset(('GET', 'POST', 'HEAD', 'OPTIONS', 'PUT',
                                     'DELETE', 'TRACE', 'PATCH'))

Original comment by attilaolah on 2 Aug 2013 at 6:08

GoogleCodeExporter commented 8 years ago
Or monkey patch an instance

Original comment by dhermes@google.com on 2 Aug 2013 at 6:14

GoogleCodeExporter commented 8 years ago
Thank you gentlemen! That works for me...

Original comment by m...@showandtellapp.com on 2 Aug 2013 at 6:28

GoogleCodeExporter commented 8 years ago
PATCH, please.

Original comment by rfu...@gmail.com on 25 Sep 2013 at 1:33