This commit is contained in:
Kenneth Reitz
2011-11-09 16:26:36 -08:00
parent 7a1a40e445
commit 2131ba4dda
-2
View File
@@ -350,8 +350,6 @@ class Request(object):
body = self._enc_data
content_type = 'application/x-www-form-urlencoded'
# TODO: Setup cookies.
# Add content-type if it wasn't explicitly provided.
if (content_type) and (not 'content-type' in self.headers):
self.headers['Content-Type'] = content_type