Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only cap the input if content length header is given #1302

Merged
merged 1 commit into from
Aug 2, 2024

Commits on Aug 2, 2024

  1. Only cap the input if content length header is given

    Currently RqLengthAware uses the InputStream#available to cap the input
    if no Content-Length header is given, but the return value does not say
    anything about the real content length, only how many bytes can be read
    without blocking (what might be 0).
    
    This now only returns a CapInputStream when a Content-Length is given in
    the request and adds a testcase for the given case.
    Christoph Läubrich committed Aug 2, 2024
    Configuration menu
    Copy the full SHA
    046de5f View commit details
    Browse the repository at this point in the history