fix confusing error message on status code 413 page

This commit is contained in:
polina4096 2023-06-04 03:00:12 +03:00
parent c2b5e95903
commit 727c465d35

View file

@ -400,7 +400,7 @@ def store_url(url, addr, ua, secret: bool):
if "content-length" in r.headers: if "content-length" in r.headers:
l = int(r.headers["content-length"]) l = int(r.headers["content-length"])
if l < app.config["MAX_CONTENT_LENGTH"]: if l <= app.config["MAX_CONTENT_LENGTH"]:
def urlfile(**kwargs): def urlfile(**kwargs):
return type('',(),kwargs)() return type('',(),kwargs)()