main
Bob Mottram 2019-11-15 14:04:54 +00:00
parent 5d107acf09
commit de10253088
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ class PubServer(BaseHTTPRequestHandler):
self.send_header('X-Robots-Tag','noindex') self.send_header('X-Robots-Tag','noindex')
self.end_headers() self.end_headers()
def _httpReturnCode(self,httpCode: int,httpDescription: str) -> None def _httpReturnCode(self,httpCode: int,httpDescription: str) -> None:
msg="<html><head></head><body><h1>"+str(httpCode)+" "+httpDescription+"</h1></body></html>" msg="<html><head></head><body><h1>"+str(httpCode)+" "+httpDescription+"</h1></body></html>"
msg=msg.encode('utf-8') msg=msg.encode('utf-8')
self.send_response(httpCode) self.send_response(httpCode)