This commit is contained in:
Aevann1 2022-05-01 23:48:53 +02:00
parent 709a7fc4b5
commit 347684926b
7 changed files with 7 additions and 44 deletions

View file

@ -49,7 +49,7 @@ def error_405(e):
def error_413(e):
return {"error": "Max file size is 8 MB (16 MB for paypigs)"}, 413
if request.headers.get("Authorization") or request.headers.get("xhr"):
return {"error": "Max image size is 8 MB (16 MB for paypigs)"}, 413
return {"error": "Max file size is 8 MB (16 MB for paypigs)"}, 413
else: return render_template('errors/413.html', err=True), 413
@app.errorhandler(429)