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

Skip to content

Commit df4fd82

Browse files
committed
Minor update
1 parent c75a2d0 commit df4fd82

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
@@ -603,7 +603,7 @@ def queryPage(value=None, place=None, content=False, getRatioValue=False, silent
603603
contentType = max(headers[_] if _.upper() == HTTP_HEADER.CONTENT_TYPE.upper() else None for _ in headers.keys())
604604
urlEncodePost = contentType and "urlencoded" in contentType or contentType is None
605605

606-
if conf.skipUrlEncode and urlEncodePost:
606+
if (kb.postHint or conf.skipUrlEncode) and urlEncodePost:
607607
urlEncodePost = False
608608
conf.httpHeaders = [_ for _ in conf.httpHeaders if _[1] != contentType]
609609
contentType = POST_HINT_CONTENT_TYPES.get(kb.postHint, PLAIN_TEXT_CONTENT_TYPE)

0 commit comments

Comments
 (0)