From: Marcin Krol Date: Mon, 22 Mar 2021 00:57:05 +0000 (+0100) Subject: - more python 3.x fixes X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=2fe650f5b1d5ea349156486ac7209b8b3abf6ba7;p=tld-builder.git - more python 3.x fixes --- diff --git a/TLD_Builder/request_handler_server.py b/TLD_Builder/request_handler_server.py index 8f9200f..255572f 100644 --- a/TLD_Builder/request_handler_server.py +++ b/TLD_Builder/request_handler_server.py @@ -24,8 +24,8 @@ class MyHandler(BaseHTTPRequestHandler): def do_POST(self): global rootnode try: - length = int(self.headers.getheader('content-length')) - filename = self.headers.getheader('x-filename') + length = int(self.headers.get('content-length')) + filename = self.headers.get('x-filename') if not length: log.error("request_handler_server: [%s]: 401 Unauthorized" % self.client_address[0]) self.send_error(401)