Use the post maximum size

master
Bob Mottram 2019-08-26 22:51:10 +01:00
parent f0485fc957
commit dbd83b6eb9
1 changed files with 1 additions and 2 deletions

View File

@ -2130,7 +2130,7 @@ class PubServer(BaseHTTPRequestHandler):
self.server.POSTbusy=False self.server.POSTbusy=False
return return
length = int(self.headers['Content-length']) length = int(self.headers['Content-length'])
if length>self.server.maxProfileDataLength: if length>self.server.maxPostLength:
print('Maximum profile data length exceeded '+str(length)) print('Maximum profile data length exceeded '+str(length))
self._redirect_headers(actorStr,cookie) self._redirect_headers(actorStr,cookie)
self.server.POSTbusy=False self.server.POSTbusy=False
@ -3128,7 +3128,6 @@ def runDaemon(projectVersion, \
httpd.maxQueueLength=16 httpd.maxQueueLength=16
httpd.ocapAlways=ocapAlways httpd.ocapAlways=ocapAlways
httpd.maxMessageLength=5000 httpd.maxMessageLength=5000
httpd.maxProfileDataLength=10*1024*1024
httpd.maxImageSize=10*1024*1024 httpd.maxImageSize=10*1024*1024
httpd.allowDeletion=allowDeletion httpd.allowDeletion=allowDeletion
httpd.lastLoginTime=0 httpd.lastLoginTime=0