Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b5060c0

Browse files
committed
Fix for an Issue #205
1 parent 2cb1b05 commit b5060c0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/request/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def getPage(**kwargs):
293293
if post and HTTPHEADER.CONTENT_TYPE not in headers:
294294
headers[HTTPHEADER.CONTENT_TYPE] = POST_HINT_CONTENT_TYPES.get(kb.postHint, DEFAULT_CONTENT_TYPE)
295295

296-
if headers[HTTPHEADER.CONTENT_TYPE] == POST_HINT_CONTENT_TYPES[POST_HINT.MULTIPART]:
296+
if headers.get(HTTPHEADER.CONTENT_TYPE) == POST_HINT_CONTENT_TYPES[POST_HINT.MULTIPART]:
297297
warnMsg = "missing 'boundary parameter' in '%s' header. " % HTTPHEADER.CONTENT_TYPE
298298
warnMsg += "Will try to reconstruct"
299299
singleTimeWarnMessage(warnMsg)

0 commit comments

Comments
 (0)