From 13d5a46b1b18e3ba981f70b1e80b708c3408281c Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 12 Sep 2021 14:37:36 +0100 Subject: [PATCH] Tidying --- daemon.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/daemon.py b/daemon.py index a2d7dc7e8..5466d2813 100644 --- a/daemon.py +++ b/daemon.py @@ -11621,15 +11621,13 @@ class PubServer(BaseHTTPRequestHandler): refererDomain = refererDomain.split('"')[0] elif uaStr: if '+https://' in uaStr: - refererDomain = \ - self.headers['User-Agent'].split('+https://')[1] + refererDomain = uaStr.split('+https://')[1] if '/' in refererDomain: refererDomain = refererDomain.split('/')[0] elif ')' in refererDomain: refererDomain = refererDomain.split(')')[0] elif '+http://' in uaStr: - refererDomain = \ - self.headers['User-Agent'].split('+http://')[1] + refererDomain = uaStr.split('+http://')[1] if '/' in refererDomain: refererDomain = refererDomain.split('/')[0] elif ')' in refererDomain: