From c503f9ec51685b3d1365f602b07445f2be8a7cb3 Mon Sep 17 00:00:00 2001 From: Alexey Novgorodov Date: Fri, 20 Jun 2025 15:26:26 +0200 Subject: [PATCH] fix parsing single header via --headers parameter --- lib/core/option.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index 58193b482..a7edfbd2d 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -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():