fixed makefile (+1 squashed commits)

Squashed commits:

[ef6ddaf5] try fix makefile
This commit is contained in:
Concedo 2024-06-02 13:35:32 +08:00
parent a97f7d5f91
commit b0a7d1aba6
7 changed files with 52 additions and 117 deletions

View file

@ -1321,7 +1321,16 @@ Enter Prompt:<br>
body = None
if contlenstr:
content_length = int(contlenstr)
if content_length > (1024*1024*24): #24mb payload limit
self.send_response(500)
self.end_headers(content_type='application/json')
self.wfile.write(json.dumps({"detail": {
"msg": "Payload is too big. Max payload size is 24MB.",
"type": "bad_input",
}}).encode())
return
body = self.rfile.read(content_length)
self.path = self.path.rstrip('/')
response_body = None
response_code = 200