manually committed pull 221, update vars only if FieldStorage holds actually something, thanks Niphlod
This commit is contained in:
1 parent
17c10b8a45
commit
5a12a7fb31
2 files changed
+2
-1
No files matched your search
@@ -1 +1 @@
|
|||||||
Version 2.6.3-stable+timestamp.2013.09.20.21.27.35
|
Version 2.6.3-stable+timestamp.2013.09.21.18.14.28
|
||||||
@@ -215,6 +215,7 @@ 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):
|
||||||
post_vars.update(dpost)
|
post_vars.update(dpost)
|
||||||
if query_string is not None:
|
if query_string is not None:
|
||||||
env['QUERY_STRING'] = query_string
|
env['QUERY_STRING'] = query_string
|
||||||
|
|||||||
Reference in new issue
Block a user