From b5060c0010eabacf6c6995a3a1cb574ac3f66516 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 16 Oct 2012 14:28:46 +0200 Subject: [PATCH] Fix for an Issue #205 --- 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 bbf3c2f4d..5082867f0 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -293,7 +293,7 @@ class Connect: if post and HTTPHEADER.CONTENT_TYPE not in headers: headers[HTTPHEADER.CONTENT_TYPE] = POST_HINT_CONTENT_TYPES.get(kb.postHint, DEFAULT_CONTENT_TYPE) - if headers[HTTPHEADER.CONTENT_TYPE] == POST_HINT_CONTENT_TYPES[POST_HINT.MULTIPART]: + if headers.get(HTTPHEADER.CONTENT_TYPE) == POST_HINT_CONTENT_TYPES[POST_HINT.MULTIPART]: warnMsg = "missing 'boundary parameter' in '%s' header. " % HTTPHEADER.CONTENT_TYPE warnMsg += "Will try to reconstruct" singleTimeWarnMessage(warnMsg)