diff options
author | Senthil Kumaran <orsenthil@gmail.com> | 2010-12-24 04:03:59 (GMT) |
---|---|---|
committer | Senthil Kumaran <orsenthil@gmail.com> | 2010-12-24 04:03:59 (GMT) |
commit | 1e991f2de5d705155e430400c8cbc24071e3df72 (patch) | |
tree | cffd3e0dd6afbc94bded88a2fe22ce4407e366b9 /Lib/urllib | |
parent | c44befb82e747ab40ff32a97c50ea16f3ffb07dc (diff) | |
download | cpython-1e991f2de5d705155e430400c8cbc24071e3df72.zip cpython-1e991f2de5d705155e430400c8cbc24071e3df72.tar.gz cpython-1e991f2de5d705155e430400c8cbc24071e3df72.tar.bz2 |
Fix some mistakes- Issue3243 (r87399) Correcting the operator precendence
problem with Content-Length header and uncommenting the test.
Diffstat (limited to 'Lib/urllib')
-rw-r--r-- | Lib/urllib/request.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/urllib/request.py b/Lib/urllib/request.py index a88bc99..4436105 100644 --- a/Lib/urllib/request.py +++ b/Lib/urllib/request.py @@ -1062,7 +1062,7 @@ class AbstractHTTPHandler(BaseHandler): data)) else: request.add_unredirected_header( - 'Content-length', '%d' % len(mv) * mv.itemsize) + 'Content-length', '%d' % (len(mv) * mv.itemsize)) sel_host = host if request.has_proxy(): |