webhookinbox
webhookinbox copied to clipboard
POST is sent but GET is captured
I sent POST
http://api.webhookinbox.com/i/{id}/in
(notice the missing last trailing slash), but view would show as GET
request instead.
Ah, probably because Django returns a code 301 redirect, which means the client is supposed to use GET when following the redirect. We should consider using code 308 which preserves the request method across redirects.
Looks like the way to do this is to subclass CommonMiddleware
and override the response_redirect_class
attribute.