mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 21:21:33 +00:00
Tamper function(s) refactoring (really no need for returning headers as they are passed by reference)
This commit is contained in:
@@ -12,7 +12,7 @@ from lib.core.enums import PRIORITY
|
||||
|
||||
__priority__ = PRIORITY.LOW
|
||||
|
||||
def tamper(payload, headers):
|
||||
def tamper(payload, headers=None):
|
||||
"""
|
||||
Replaces space character (' ') with a dash comment ('--') followed by
|
||||
a random string and a new line ('\n')
|
||||
@@ -46,4 +46,4 @@ def tamper(payload, headers):
|
||||
else:
|
||||
retVal += payload[i]
|
||||
|
||||
return retVal, headers
|
||||
return retVal
|
||||
|
||||
Reference in New Issue
Block a user