From ff205f088bde044d24c9a8c9a7f83c1d63ba09fd Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Sun, 7 Oct 2012 20:12:55 +0200 Subject: [PATCH] Minor update --- lib/request/connect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/connect.py b/lib/request/connect.py index 9666d6f11..e1584206d 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -288,7 +288,7 @@ class Connect: headers[HTTPHEADER.ACCEPT_ENCODING] = HTTP_ACCEPT_ENCODING_HEADER_VALUE if method != HTTPMETHOD.HEAD and kb.pageCompress else "identity" headers[HTTPHEADER.HOST] = host or getHostHeader(url) - if post: + if post and HTTPHEADER.CONTENT_TYPE not in headers: headers[HTTPHEADER.CONTENT_TYPE] = POST_HINT_CONTENT_TYPES.get(kb.postHint, DEFAULT_CONTENT_TYPE) if auxHeaders: