mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-17 01:53:07 +00:00
revert of some HTTP headers handling
This commit is contained in:
parent
0c8918bf07
commit
fda8752dca
5 changed files with 12 additions and 14 deletions
|
|
@ -377,7 +377,7 @@ def checkNullConnection():
|
|||
infoMsg = "NULL connection is supported with HEAD header"
|
||||
logger.info(infoMsg)
|
||||
else:
|
||||
page, headers = Request.getPage(auxHeaders={NULLCONNECTION.RANGE: "bytes=-1"})
|
||||
page, headers = Request.getPage(auxHeaders={"Range": "bytes=-1"})
|
||||
if page and len(page) == 1 and 'Content-Range' in headers:
|
||||
kb.nullConnection = NULLCONNECTION.RANGE
|
||||
|
||||
|
|
|
|||
|
|
@ -195,7 +195,7 @@ def start():
|
|||
setCookieAsInjectable = False
|
||||
|
||||
if setCookieAsInjectable:
|
||||
conf.httpHeaders.append((PLACE.COOKIE, cookieStr))
|
||||
conf.httpHeaders.append(("Cookie", cookieStr))
|
||||
conf.parameters[PLACE.COOKIE] = cookieStr
|
||||
__paramDict = paramToDict(PLACE.COOKIE, cookieStr)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue