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

Skip to content

Commit c75a2d0

Browse files
committed
Minor patch
1 parent 153aa10 commit c75a2d0

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

606606
if conf.skipUrlEncode and urlEncodePost:
607607
urlEncodePost = False

0 commit comments

Comments
 (0)