This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients WildCard65, berker.peksag, martin.panter, paul.moore, steve.dower, terry.reedy, tim.golden, vstinner, zach.ware
Date 2018-01-05.23:06:00
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1515193560.36.0.467229070634.issue25095@psf.upfronthosting.co.za>
In-reply-to
Content
Thanks, although the fact that “Content-Length: 0” doesn’t work kills my theory about the proxy.

The “close_connection” flag is also a documented public API of Python: <https://docs.python.org/3/library/http.server.html#http.server.BaseHTTPRequestHandler.close_connection>. According to the rules for framing the message body in <https://tools.ietf.org/html/rfc7230#section-3.3.3>, the presence of “Connection: close” is not important. The server actually shutting down the connection is the key. That is why I prefer to explicitly set the flag (if it works).

Anyway, your current proposal makes the server send a valid full HTTP response.
History
Date User Action Args
2018-01-05 23:06:00martin.pantersetrecipients: + martin.panter, terry.reedy, paul.moore, vstinner, tim.golden, berker.peksag, zach.ware, steve.dower, WildCard65
2018-01-05 23:06:00martin.pantersetmessageid: <1515193560.36.0.467229070634.issue25095@psf.upfronthosting.co.za>
2018-01-05 23:06:00martin.panterlinkissue25095 messages
2018-01-05 23:06:00martin.pantercreate