➜

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.

作者 karlcow
收信人 cocobear, karlcow, orsenthil
日期 2013-03-19.21:34:56
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1363728896.41.0.68283786084.issue5550@psf.upfronthosting.co.za>
In-reply-to
内容
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.
历史
日期 用户 动作 参数
2013-03-19 21:34:56karlcow修改recipients: + karlcow, orsenthil, cocobear
2013-03-19 21:34:56karlcow修改messageid: <1363728896.41.0.68283786084.issue5550@psf.upfronthosting.co.za>
2013-03-19 21:34:56karlcow链接issue5550 messages
2013-03-19 21:34:56karlcow创建