Skip to content

wasi http host#137

Merged
ruslanti merged 2 commits into
mainfrom
fix/wasi-http-host
May 11, 2026
Merged

wasi http host#137
ruslanti merged 2 commits into
mainfrom
fix/wasi-http-host

Conversation

@ruslanti
Copy link
Copy Markdown
Collaborator

No description provided.

ruslanti added 2 commits May 11, 2026 15:56
- Simplified hostname resolution by consistently prioritizing `server_name` and backend configurations.
- Reordered and tidied imports for better readability.
- Updated `HOST` header propagation logic for accuracy.
- Replaced hardcoded `LOCALHOST` with dynamic backend hostname resolution.
- Added validation for backend hostname configuration and parsing.
- Updated `HOST` header propagation using the resolved backend hostname.
Copilot AI review requested due to automatic review settings May 11, 2026 13:14
@ruslanti ruslanti self-assigned this May 11, 2026
@ruslanti ruslanti added the bug Something isn't working label May 11, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts hostname/Host-header handling in the WASI HTTP executor path, and includes a small import formatting change.

Changes:

  • Simplifies http imports formatting in crates/http-service/src/lib.rs.
  • Updates WasiHttpExecutorImpl::execute to derive a backend host header from the backend’s configured hostname and use it for the propagated Host header.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
crates/http-service/src/lib.rs Minor formatting change to consolidate http imports.
crates/http-service/src/executor/wasi_http.rs Changes hostname resolution and sets propagated Host header based on backend hostname.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread crates/http-service/src/executor/wasi_http.rs
Comment thread crates/http-service/src/executor/wasi_http.rs
@ruslanti ruslanti requested review from godronus and qrdl May 11, 2026 13:20
@ruslanti ruslanti merged commit 7dd599c into main May 11, 2026
8 of 10 checks passed
@ruslanti ruslanti deleted the fix/wasi-http-host branch May 11, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants