modernzju opened PR #13697 from modernzju:main to bytecodealliance:main:
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->This updates the wasi-http p3
set_authorityvalidation to allow bracketed IPv6 authorities without an explicit port, such as[::].Previously p3 treated any
:in the authority string as indicating a port. That incorrectly rejected bracketed IPv6 literals without ports because their colons are part of the host. This keeps the existing validation for invalid ports, such asbad-port:99999, while only treating a bracketed IPv6 authority as having a port when the suffix after]starts with:.A test case was added to align p3 behavior with the existing p2 coverage for
[::]:443and[::].Testing:
cargo fmt --checkcargo test -p wasmtime-wasi-http --features p3,default-send-request p3_http_outbound_request_response_build
modernzju requested dicej for a review on PR #13697.
modernzju requested wasmtime-wasi-reviewers for a review on PR #13697.
modernzju requested wasmtime-core-reviewers for a review on PR #13697.
:thumbs_up: dicej submitted PR review:
Thanks! Would you mind rebasing this and fixing the conflict?
fitzgen added the label wasi-http on PR #13697.
fitzgen added the label enhancement on PR #13697.
dicej updated PR #13697.
dicej has enabled auto merge for PR #13697.
dicej added PR #13697 Allow bracketed IPv6 authorities without ports in wasi-http p3 to the merge queue.
:check: dicej merged PR #13697.
dicej removed PR #13697 Allow bracketed IPv6 authorities without ports in wasi-http p3 from the merge queue.
Last updated: Jul 29 2026 at 05:03 UTC