You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
http.server's send_error could set the content-length of the error body #60292
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee=Noneclosed_at=<Date2012-10-11.06:19:07.606>created_at=<Date2012-09-29.23:02:31.345>labels= ['type-feature', 'library']
title="http.server's send_error could set the content-length of the error body"updated_at=<Date2012-10-11.06:19:07.604>user='https://github.com/pitrou'
BaseHTTPRequestHandler.send_error() sets "connection: close", so the client shouldn't need a content-length, but it can still be nicer to send it (e.g. it seems to solve an issue with wget, see bpo-15991).
Activity
pitrou commentedon Sep 29, 2012
BaseHTTPRequestHandler.send_error() sets "connection: close", so the client shouldn't need a content-length, but it can still be nicer to send it (e.g. it seems to solve an issue with wget, see bpo-15991).
pitrou commentedon Sep 29, 2012
Here is a patch.
orsenthil commentedon Oct 9, 2012
+1 to this change. It may be helpful in the cases like bpo-15991.
jcea commentedon Oct 11, 2012
Looks good.
python-dev commentedon Oct 11, 2012
New changeset ee34cb049a10 by Senthil Kumaran in branch 'default':
Issue bpo-16088: BaseHTTPRequestHandler's send_error method includes a
http://hg.python.org/cpython/rev/ee34cb049a10
orsenthil commentedon Oct 11, 2012
I took the privilege of testing, adding news and docs and committing it.
Thank you!