Georg Brandl ge...@python.org added the comment:
Why would one read 2 bytes less than CONTENT_LENGTH?
--
nosy: +georg.brandl
resolution: - works for me
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6728
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6728
___
___
New submission from Yang stud...@live.cn:
The mismatched content length will cause hang up in sys.stdin.read().
The reason is probably described in Issue 1214 as well as 1725295.
length = int(os.environ.get('CONTENT_LENGTH', None))
Length fix for IIS 7.x to avoid hang up
length=length-2
I