main
Bob Mottram 2019-11-16 09:53:52 +00:00
parent 94a3f1c2b1
commit 72cfda3f9d
1 changed files with 2 additions and 2 deletions

View File

@ -4619,9 +4619,9 @@ class PubServer(BaseHTTPRequestHandler):
length=0 length=0
if self.headers.get('Content-length'): if self.headers.get('Content-length'):
length = int(self.headers['Content-length']) length = int(self.headers['Content-length'])
if self.headers.get('Content-Length'): elif self.headers.get('Content-Length'):
length = int(self.headers['Content-Length']) length = int(self.headers['Content-Length'])
if self.headers.get('content-length'): elif self.headers.get('content-length'):
length = int(self.headers['content-length']) length = int(self.headers['content-length'])
if length>10240: if length>10240:
print('WARN: post to shared inbox is too long '+str(length)+' bytes') print('WARN: post to shared inbox is too long '+str(length)+' bytes')