uploadserver icon indicating copy to clipboard operation
uploadserver copied to clipboard

How to limit the Content-Length for a POST request?

Open fon1105 opened this issue 1 year ago • 1 comments

Is there any way to limit the Content-Length for a POST request? Thanks.

fon1105 avatar Jul 23 '24 02:07 fon1105

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?

Densaugeo avatar Jul 29 '24 03:07 Densaugeo