1
Offline regression tests / windows (3.11) (push) Canceled after 0s
Offline regression tests / windows (3.12) (push) Canceled after 0s
Offline regression tests / windows (3.13) (push) Canceled after 0s

This commit is contained in:
listik committed 2026-10-23 23:38:37 +03:00
1 parent 3ae4e18211
commit 730adb3ff2
9 files changed
+206 -33

No files matched your search

+4
View File
@@ -358,6 +358,10 @@ class Proxy(BaseHTTPRequestHandler):
headers = {k: v for k, v in self.headers.items() if k.lower() not in HOP_HEADERS}
# Preserve the validated authority so the engine can compare the browser Origin.
headers["Host"] = self.headers["Host"]
# Forward only the scheme validated at this proxy boundary. The engine repeats
# the host/origin checks and must know TLS terminated at the external gateway.
if self.headers.get("X-Forwarded-Proto", "").lower() == "https":
headers["X-Forwarded-Proto"] = "https"
req = urllib.request.Request(ENGINE + self.path, data=body, method=method, headers=headers)
try:
with urllib.request.urlopen(req, timeout=30) as resp: