fix parsing single header via --headers parameter

This commit is contained in:
Alexey Novgorodov 2025-06-20 15:26:26 +02:00
parent 8f9eeb5d54
commit c503f9ec51

View File

@ -1410,6 +1410,8 @@ def _setHTTPExtraHeaders():
conf.headers = conf.headers.replace("\r\n", "\n").split("\n")
elif "\\n" in conf.headers:
conf.headers = conf.headers.replace("\\r\\n", "\\n").split("\\n")
else:
headers = [headers]
for headerValue in conf.headers:
if not headerValue.strip():