no more if len(dpost)
This commit is contained in:
@@ -1 +1 @@
|
|||||||
Version 2.6.4-stable+timestamp.2013.09.24.13.29.22
|
Version 2.6.4-stable+timestamp.2013.09.24.13.36.50
|
||||||
|
|||||||
+2
-1
@@ -215,8 +215,9 @@ class Request(Storage):
|
|||||||
and env.request_method in ('POST', 'PUT', 'DELETE', 'BOTH')):
|
and env.request_method in ('POST', 'PUT', 'DELETE', 'BOTH')):
|
||||||
query_string = env.pop('QUERY_STRING',None)
|
query_string = env.pop('QUERY_STRING',None)
|
||||||
dpost = cgi.FieldStorage(fp=body, environ=env, keep_blank_values=1)
|
dpost = cgi.FieldStorage(fp=body, environ=env, keep_blank_values=1)
|
||||||
if len(dpost):
|
try:
|
||||||
post_vars.update(dpost)
|
post_vars.update(dpost)
|
||||||
|
except: pass
|
||||||
if query_string is not None:
|
if query_string is not None:
|
||||||
env['QUERY_STRING'] = query_string
|
env['QUERY_STRING'] = query_string
|
||||||
# The same detection used by FieldStorage to detect multipart POSTs
|
# The same detection used by FieldStorage to detect multipart POSTs
|
||||||
|
|||||||
Reference in New Issue
Block a user