From 7feb38e3822e952f27e573e75154fdb2062a1556 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 25 Jan 2021 11:18:21 +0000 Subject: [PATCH] Fix line lengths --- daemon.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index 19d2b8dba..81b664b01 100644 --- a/daemon.py +++ b/daemon.py @@ -9876,8 +9876,10 @@ class PubServer(BaseHTTPRequestHandler): def do_GET(self): callingDomain = self.server.domainFull if self.headers.get('Host'): - # IDNA decoding is an idempotent operation so this should not break 'normal' domains. - # For non-IDNA domains perhaps this behaviour should be disabled: TODO add config option? + # IDNA decoding is an idempotent operation so this + # should not break 'normal' domains. + # For non-IDNA domains perhaps this behaviour should + # be disabled: TODO add config option? callingDomain = idna.decode(self.headers['Host']) if self.server.onionDomain: if callingDomain != self.server.domain and \ @@ -12037,7 +12039,8 @@ class PubServer(BaseHTTPRequestHandler): def do_HEAD(self): callingDomain = self.server.domainFull if self.headers.get('Host'): - # As in the GET handler this should be idempotent but for security maybe make configurable. + # As in the GET handler this should be idempotent but + # for security maybe make configurable. callingDomain = idna.decode(self.headers['Host']) if self.server.onionDomain: if callingDomain != self.server.domain and \ @@ -12989,7 +12992,8 @@ class PubServer(BaseHTTPRequestHandler): callingDomain = self.server.domainFull if self.headers.get('Host'): - # As notes in the GET handler, this should be idempotent but should be configurable just in case + # As notes in the GET handler, this should be idempotent + # but should be configurable just in case callingDomain = idna.decode(self.headers['Host']) if self.server.onionDomain: if callingDomain != self.server.domain and \