Set path on redirect

main
Bob Mottram 2020-06-19 12:05:01 +01:00
parent a77fdc074c
commit e48f019d56
1 changed files with 1 additions and 0 deletions

View File

@ -546,6 +546,7 @@ class PubServer(BaseHTTPRequestHandler):
self.send_header('X-Robots-Tag', 'noindex')
self.end_headers()
if not httpRedirect:
self.Path = redirect.replace(callingDomain, '')
self.do_GET()
def _httpReturnCode(self, httpCode: int, httpDescription: str) -> None: