uploadserver
uploadserver copied to clipboard
How to limit the Content-Length for a POST request?
Is there any way to limit the Content-Length for a POST request? Thanks.
Not currently, but that might be a useful thing to add. Looks like it could be done by adding a new function similar to check_http_authentication which examines the Content-Length header.
Would require testing edge cases like a large file sent with an erroneously small Content-Length header.
I think I'll leave this open as a feature request and add it if I see more interest. How essential would you say this is for your application?