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 | karlcow |
|---|---|
| Recipients | cocobear, karlcow, orsenthil |
| Date | 2013年03月19日.21:34:56 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1363728896.41.0.68283786084.issue5550@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
The wireshark trace is a different domain than the code example. But let's see. cocobear added:
headers = [("Content-Type","application/oct-stream"),]
with a "Content-Type", not the capitalized "Type".
BUT in the source code or urllib/request.py there is
http://hg.python.org/cpython/file/3.3/Lib/urllib/request.py#l1184
if not request.has_header('Content-type')
And if you check has_header at
http://hg.python.org/cpython/file/3.3/Lib/urllib/request.py#l367
it compares exactly the string it has received, when HTTP headers are case insensitive. It reminds me of
http://bugs.python.org/issue12455
http://bugs.python.org/issue17322
with capitalization issues.
I'm changing the title to be more exact. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2013年03月19日 21:34:56 | karlcow | set | recipients: + karlcow, orsenthil, cocobear |
| 2013年03月19日 21:34:56 | karlcow | set | messageid: <1363728896.41.0.68283786084.issue5550@psf.upfronthosting.co.za> |
| 2013年03月19日 21:34:56 | karlcow | link | issue5550 messages |
| 2013年03月19日 21:34:56 | karlcow | create | |