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

[wasi-http] Return none from future-trailers.get when trailers absent #9208

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

dicej
Copy link
Contributor

@dicej dicej commented Sep 6, 2024

Previously, we would return error-code::connection-terminated in this case, whereas the wasi-http spec says we should simply return none (i.e. it's not an error if there are no trailers present).

This also adds code to api_proxy_streaming.rs to check for trailers after reading the body content.

…sent

Previously, we would return `error-code::connection-terminated` in this case,
whereas the `wasi-http` spec says we should simply return `none` (i.e. it's not
an error if there are no trailers present).

This also adds code to `api_proxy_streaming.rs` to check for trailers after
reading the body content.

Signed-off-by: Joel Dice <[email protected]>
@dicej dicej requested a review from elliottt September 6, 2024 16:55
@dicej dicej requested a review from a team as a code owner September 6, 2024 16:55
Signed-off-by: Joel Dice <[email protected]>
@alexcrichton
Copy link
Member

Thanks!

@alexcrichton alexcrichton added this pull request to the merge queue Sep 6, 2024
Merged via the queue into bytecodealliance:main with commit 75ed0b6 Sep 6, 2024
37 checks passed
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.

2 participants