Commit 9c23a0c6 authored by Denis Bilenko's avatar Denis Bilenko

Merge pull request #264 from smallfish/master

Update pywsgi.py, support GET can require Body
parents ca50d71a b456ae14
......@@ -247,7 +247,7 @@ class WSGIHandler(object):
if content_length < 0:
self.log_error('Invalid Content-Length: %r', content_length)
return
if content_length and self.command in ('GET', 'HEAD'):
if content_length and self.command in ('HEAD', ):
self.log_error('Unexpected Content-Length')
return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment