Skip to content

fix(blocking): preserve version and extensions in request conversion - #3015

Open
meliezer wants to merge 1 commit into
seanmonstar:masterfrom
meliezer:fix-blocking-request-version
Open

fix(blocking): preserve version and extensions in request conversion#3015
meliezer wants to merge 1 commit into
seanmonstar:masterfrom
meliezer:fix-blocking-request-version

Conversation

@meliezer

Copy link
Copy Markdown

Fix blocking::Request::try_from(http::Request<_>) to preserve HTTP version
and request extensions, aligning the blocking conversion with the async implementation.

Previously, version and extensions were dropped during conversion in the
blocking path, leading to inconsistent behavior compared to async.

This change ensures both fields are preserved.

Adds regression coverage for HTTP version preservation.

Closes #2989.

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.

blocking::Request::try_from(http::Request<_>) drops non-default HTTP version and discards extensions

1 participant