Skip to content

Conversation

@Bhambya
Copy link

@Bhambya Bhambya commented Nov 24, 2025

Currently we cannot use reverse proxies in the Custom API as we cannot pass the Host header in the headers field. This is because net/http ignores the Host header and uses the req.Host field instead: golang/go#7682.

This PR adds the support for it. The change is backward compatible. Tested with Traefik as the reverse proxy in my environment and confirmed that it's working.

Another option was to search for the Host header in the headers field and set that in req.Host but that would not be backward compatible.

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