No need to call setitem explicitly. Implicit is better than explicit.
@@ -718,7 +718,7 @@ class Request(object):
name = name.title()
value = value.strip()
- dict.__setitem__(headers, name, httputil.decode_TEXT_maybe(value))
+ headers[name] = httputil.decode_TEXT_maybe(value)
# Some clients, notably Konquoror, supply multiple
# cookies on different lines with the same key. To
