fix: redirects
This commit is contained in:
+3
-1
@@ -156,7 +156,9 @@ class BaseHandler(abc.ABC, http.server.BaseHTTPRequestHandler):
|
||||
return
|
||||
self.send_response(response.status_code, response.reason)
|
||||
for header, value in response.headers.items():
|
||||
if header.lower() not in [
|
||||
if header.lower() == "location":
|
||||
self.send_header(header, value.removeprefix(url))
|
||||
elif header.lower() not in [
|
||||
"content-length",
|
||||
"content-encoding",
|
||||
"transfer-encoding",
|
||||
|
||||
Reference in New Issue
Block a user