allow to process post vars in DELETE requests
This commit is contained in:
1 parent
0fcb5f2ccd
commit
176c9f4ad9
1 file changed
+1
-1
+1
-1
@@ -344,7 +344,7 @@ def parse_get_post_vars(request, environ):
|
||||
|
||||
|
||||
# parse POST variables on POST, PUT, BOTH only in post_vars
|
||||
if (body and env.request_method in ('POST', 'PUT', 'BOTH')):
|
||||
if (body and env.request_method in ('POST', 'PUT', 'DELETE', 'BOTH')):
|
||||
dpost = cgi.FieldStorage(fp=body, environ=environ, keep_blank_values=1)
|
||||
# The same detection used by FieldStorage to detect multipart POSTs
|
||||
is_multipart = dpost.type[:10] == 'multipart/'
|
||||
|
||||
Reference in new issue
Block a user