mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-28 13:42:36 +01:00
Merge remote-tracking branch 'mlq/fix/httpserver-read-content-length' into testing
This commit is contained in:
commit
f45e2904f5
@ -251,7 +251,8 @@ class SupyHTTPRequestHandler(BaseHTTPRequestHandler):
|
||||
'CONTENT_TYPE':self.headers['Content-Type'],
|
||||
})
|
||||
else:
|
||||
form = self.rfile.read()
|
||||
content_length = int(self.headers.get('Content-Length', '0'))
|
||||
form = self.rfile.read(content_length)
|
||||
self.do_X('doPost', form=form)
|
||||
|
||||
def do_HEAD(self):
|
||||
|
Loading…
Reference in New Issue
Block a user