Skip to content

Commit a79ce46

Browse files
authored
Merge pull request #68 from JeromeNaucelle/patch-1
Fix "Headers not loaded after saving" (aka bug-66)
2 parents e9d0506 + a56e9a5 commit a79ce46

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nosqlmap.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,15 @@ def options():
367367
myPort = optList[5]
368368
verb = optList[6]
369369
https = optList[7]
370+
371+
# saved headers position will depend of the request verb
372+
headersPos= 1
370373

371374
if httpMethod == "POST":
372375
postData = ast.literal_eval(csvOpt[1])
376+
headersPos = 2
377+
378+
requestHeaders = ast.literal_eval(csvOpt[headersPos])
373379

374380
# Set option checking array based on what was loaded
375381
x = 0

0 commit comments

Comments
 (0)