mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-17 21:48:59 +00:00
Fixing --openapi-only config file rejection and HAR export header-name casing
This commit is contained in:
parent
1c869b7430
commit
0a6dbd260f
3 changed files with 5 additions and 5 deletions
|
|
@ -116,7 +116,7 @@ class Request(object):
|
|||
"httpVersion": self.httpVersion,
|
||||
"method": self.method,
|
||||
"url": self.url,
|
||||
"headers": [dict(name=key.capitalize(), value=value) for key, value in self.headers.items()],
|
||||
"headers": [dict(name="-".join(_.capitalize() for _ in key.split("-")), value=value) for key, value in self.headers.items()],
|
||||
"cookies": [],
|
||||
"queryString": [],
|
||||
"headersSize": -1,
|
||||
|
|
@ -202,7 +202,7 @@ class Response(object):
|
|||
"httpVersion": self.httpVersion,
|
||||
"status": self.status,
|
||||
"statusText": self.statusText,
|
||||
"headers": [dict(name=key.capitalize(), value=value) for key, value in self.headers.items() if key.lower() != "uri"],
|
||||
"headers": [dict(name="-".join(_.capitalize() for _ in key.split("-")), value=value) for key, value in self.headers.items() if key.lower() != "uri"],
|
||||
"cookies": [],
|
||||
"content": content,
|
||||
"headersSize": -1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue