no more if len(dpost)

This commit is contained in:
Massimo
2013-09-24 13:37:25 -05:00
parent b67141b1ef
commit 5f9d8a9cc2
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -215,8 +215,9 @@ class Request(Storage):
and env.request_method in ('POST', 'PUT', 'DELETE', 'BOTH')):
query_string = env.pop('QUERY_STRING',None)
dpost = cgi.FieldStorage(fp=body, environ=env, keep_blank_values=1)
if len(dpost):
try:
post_vars.update(dpost)
except: pass
if query_string is not None:
env['QUERY_STRING'] = query_string
# The same detection used by FieldStorage to detect multipart POSTs