Re: MethodDispatcher and OPTIONS

Aaron Dalton <[email protected]>
Newsgroups gmane.comp.python.cherrypy
Message-ID <[email protected]>
Apparently the dispatcher returns an Allow header with every request, so if 
you want to enable an OPTIONS request:

def OPTIONS(self):
    return None



On Friday, 29 April 2016 09:45:19 UTC-6, Aaron Dalton wrote:
>
> I thought that MethodDispatcher provided an automatic OPTIONS response 
> populated based on methods and accept types defined for that class? But I 
> keep getting 405 Method Not Allowed when trying. Is there something I need 
> to enable? Or do I just need to do it manually? Thanks!
>

-- 
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.