mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-25 19:13:48 +03:00
minor update
This commit is contained in:
parent
3e152f8b20
commit
a0f5c3d885
|
@ -92,11 +92,10 @@ class Connect:
|
||||||
requestMsg += "?%s" % params
|
requestMsg += "?%s" % params
|
||||||
|
|
||||||
elif multipart:
|
elif multipart:
|
||||||
proxyHandler = None
|
#needed in this form because of potential circle dependency problem (option -> update -> connect -> option)
|
||||||
if not conf.proxy:
|
from lib.core.option import proxyHandler
|
||||||
if conf.hostname in ('localhost', '127.0.0.1'):
|
|
||||||
proxyHandler = urllib2.ProxyHandler({})
|
multipartOpener = urllib2.build_opener(proxyHandler, multipartpost.MultipartPostHandler)
|
||||||
multipartOpener = urllib2.build_opener(*(proxyHandler, multipartpost.MultipartPostHandler) if proxyHandler else multipartpost.MultipartPostHandler)
|
|
||||||
conn = multipartOpener.open(url, multipart)
|
conn = multipartOpener.open(url, multipart)
|
||||||
page = conn.read()
|
page = conn.read()
|
||||||
responseHeaders = conn.info()
|
responseHeaders = conn.info()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user