Skip to content

nsqd: add opt-in --http-reject-chunked flag to reject chunked requests#1516

Open
shipra-gupta-2000 wants to merge 1 commit into
nsqio:masterfrom
shipra-gupta-2000:rejectChunked
Open

nsqd: add opt-in --http-reject-chunked flag to reject chunked requests#1516
shipra-gupta-2000 wants to merge 1 commit into
nsqio:masterfrom
shipra-gupta-2000:rejectChunked

Conversation

@shipra-gupta-2000

Copy link
Copy Markdown

Behavior : when HTTPRejectChunked is true, doPUB and doMPUB return 400 for chunked requests.
Provides operators a safe, non-breaking way to opt in to stricter HTTP handling (reject chunked requests) without changing default behavior or breaking existing clients. Helps fail early for clients that must avoid chunked bodies.

It replaces the TODO
// TODO: one day I'd really like to just error on chunked requests
// to be able to fail "too big" requests before we even read

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant