Skip to content

test: preserve an empty HTTP/1.1 request query - #1893

Open
He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:test/http1-preserve-empty-query
Open

He-Pin wants to merge 1 commit into
apache:mainfrom
He-Pin:test/http1-preserve-empty-query

Conversation

@He-Pin

@He-Pin He-Pin commented Nov 29, 2026

Copy link
Copy Markdown
Member

Motivation

An empty query and an absent query are distinct request targets. Cover their distinction in the HTTP/1.1 request parser itself.

Modification

Feed two literal GET requests on the same parser instance. Assert that the parsed URI preserves the empty query for the first request and has no query for the second.

Result

No production changes. The named regression passed in both RequestParserCRLFSpec and RequestParserLFSpec on JDK 21 and Scala 2.13.18 (2/2); the module formatter check passed. LF is existing compatibility coverage.

References

RFC 9112 §3.2.1, RFC 3986 §6.2.3.

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