How request size limit is working with chunked requests?


#1

Hi !

I’m wondering how the plugin that checks the request size is working with chunked request ?

I don’t see anything for that in the source code: https://github.com/TykTechnologies/tyk/blob/master/middleware_request_size_limit.go

Thanks for the infos !


#2

Hi Mathieu,

I don;t think it is handled at the moment, request size limit is enforced based on the content length for a single request, so I don’t think it will work well with chunked. Worth a PR maybe? :wink:

Thanks,
Martin