Fixing --openapi-only config file rejection and HAR export header-name casing

This commit is contained in:
Miroslav Štampar
2026-07-28 21:27:58 +02:00
parent 1c869b7430
commit 0a6dbd260f
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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,