From f2b295ed7b498817fb789c665388af2aa20fc7ce Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 12 Nov 2019 18:32:33 +0000 Subject: [PATCH] Avoid duplicates --- daemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index 551175b0..265d2927 100644 --- a/daemon.py +++ b/daemon.py @@ -634,8 +634,8 @@ class PubServer(BaseHTTPRequestHandler): if self.headers.get('Content-type'): headersDict['Content-type']=self.headers['Content-type'] if self.headers.get('Content-Length'): - headersDict['Content-Length']=self.headers['Content-Length'] - if self.headers.get('content-length'): + headersDict['Content-Length']=self.headers['Content-Length'] + elif self.headers.get('content-length'): headersDict['content-length']=self.headers['content-length'] # For follow activities add a 'to' field, which is a copy