- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
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 | <1424144888.77.0.64805432367.issue22928@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
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. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2015-02-17 03:48:08 | martin.panter | set | recipients: + martin.panter, orsenthil, r.david.murray, demian.brecht, Guido |
| 2015-02-17 03:48:08 | martin.panter | set | messageid: <1424144888.77.0.64805432367.issue22928@psf.upfronthosting.co.za> |
| 2015-02-17 03:48:08 | martin.panter | link | issue22928 messages |
| 2015-02-17 03:48:08 | martin.panter | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
