From dbd83b6eb99d09a8ec6ce25fde797f51b6b62016 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 26 Aug 2019 22:51:10 +0100 Subject: [PATCH] Use the post maximum size --- daemon.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index de4013500..1155e7a9f 100644 --- a/daemon.py +++ b/daemon.py @@ -2130,7 +2130,7 @@ class PubServer(BaseHTTPRequestHandler): self.server.POSTbusy=False return length = int(self.headers['Content-length']) - if length>self.server.maxProfileDataLength: + if length>self.server.maxPostLength: print('Maximum profile data length exceeded '+str(length)) self._redirect_headers(actorStr,cookie) self.server.POSTbusy=False @@ -3128,7 +3128,6 @@ def runDaemon(projectVersion, \ httpd.maxQueueLength=16 httpd.ocapAlways=ocapAlways httpd.maxMessageLength=5000 - httpd.maxProfileDataLength=10*1024*1024 httpd.maxImageSize=10*1024*1024 httpd.allowDeletion=allowDeletion httpd.lastLoginTime=0