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 martin.panter, rugk
Date 2016-06-11.15:04:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
HTTP header fields are not supposed to have line breaks unless followed by a space or tab. So the server is actually providing a faulty response.

However Python could do better at handling this case. There is already a bug open for this: Issue 24363.

For the record, the full server response I get is:

'HTTP/1.1 200 OK\r\n'
'Server: nginx\r\n'
'Date: Sat, 11 Jun 2016 14:47:19 GMT\r\n'
'Content-Type: text/plain\r\n'
'Transfer-Encoding: chunked\r\n'
'Connection: close\r\n'
'Vary: Accept-Encoding\r\n'
'Strict-Transport-Security: max-age=15768000; includeSubDomains; preload\r\n'
'Public-Key-Pins: \n'
'max-age=5184000; includeSubDomains;\n'
Date User Action Args
2016-06-11 15:04:09martin.pantersetrecipients: + martin.panter, rugk
2016-06-11 15:04:09martin.pantersetmessageid: <>
2016-06-11 15:04:09martin.panterlinkissue27296 messages
2016-06-11 15:04:09martin.pantercreate