From a45dd5f8dab82228ed2e5061ee289e6b11fd21c5 Mon Sep 17 00:00:00 2001 From: Jan Breig Date: Fri, 25 Sep 2026 10:53:07 +0200 Subject: [PATCH] Fixes https://github.com/sqlmapproject/sqlmap/issues/6129 --- lib/request/httpshandler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/request/httpshandler.py b/lib/request/httpshandler.py index 4e95c600677..e8239531f8a 100644 --- a/lib/request/httpshandler.py +++ b/lib/request/httpshandler.py @@ -91,7 +91,7 @@ def create_sock(): else: for header, value in conf.httpHeaders: if header.lower() == "host": - hostname = value + hostname = value.split(":")[0] break hostname = hostname if re.search(r"\A[\d.]+\Z", hostname or "") is None else None result = _contexts[protocol].wrap_socket(sock, do_handshake_on_connect=True, server_hostname=hostname)