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 Guido, demian.brecht, martin.panter, orsenthil, r.david.murray
Date 2015-02-17.03:48:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
But it is not natural to do things like this (based on headers sent by Firefox):

putheader("User-Agent", "Mozilla/5.0", "(X11;", "Linux", "x86_64;", "rv:25.0)", "Gecko/20100101", "Firefox/25.0")
putheader("Accept-Encoding", "gzip,", "deflate")

A way to properly encode different kinds of header values would be nice, but I don’t think the current putheader() API is it.

Also, I still think it would be good to allow non-ASCII characters in header values. At least when an already-encoded byte string is supplied. For instance, RTSP is based on HTTP but uses UTF-8 as a default encoding, rather than HTTP’s Latin-1. Otherwise, retaining the one_value.encode('latin-1') call is confusing when later on it rejects non-ASCII-encoded characters.
Date User Action Args
2015-02-17 03:48:08martin.pantersetrecipients: + martin.panter, orsenthil, r.david.murray, demian.brecht, Guido
2015-02-17 03:48:08martin.pantersetmessageid: <>
2015-02-17 03:48:08martin.panterlinkissue22928 messages
2015-02-17 03:48:08martin.pantercreate