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

Skip to content

Commit 2f18df3

Browse files
committed
Minor patch
1 parent 2680954 commit 2f18df3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

lib/request/connect.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@
9292
from lib.request.direct import direct
9393
from lib.request.comparison import comparison
9494
from lib.request.methodrequest import MethodRequest
95-
from thirdparty.socks.socks import ProxyError
9695
from thirdparty.multipart import multipartpost
96+
from thirdparty.odict.odict import OrderedDict
97+
from thirdparty.socks.socks import ProxyError
9798

9899

99100
class Connect(object):
@@ -638,7 +639,7 @@ def queryPage(value=None, place=None, content=False, getRatioValue=False, silent
638639
threadData = getCurrentThreadData()
639640

640641
if conf.httpHeaders:
641-
headers = dict(conf.httpHeaders)
642+
headers = OrderedDict(conf.httpHeaders)
642643
contentType = max(headers[_] if _.upper() == HTTP_HEADER.CONTENT_TYPE.upper() else None for _ in headers.keys())
643644

644645
if (kb.postHint or conf.skipUrlEncode) and kb.postUrlEncode:

0 commit comments

Comments
 (0)