Avoid duplicates

merge-requests/3/head
Bob Mottram 2019-11-12 18:32:33 +00:00
parent 80a0560fed
commit f2b295ed7b
1 changed files with 2 additions and 2 deletions

View File

@ -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