summaryrefslogtreecommitdiff
path: root/internal/handlers
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-07-05 09:22:27 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-07-05 09:22:27 +0000
commit1c88981cbb5a95ee84e2a61cf9eb2e547c37253b (patch)
tree75e6e5e8703c3ffd5ca9b29176a26cddf0956889 /internal/handlers
parent8ca820b05e9e699a7b563a2e37ff2a0629a5505a (diff)
parent24a87b9e979abe6c2ba23421293dc0cd8cb6d65f (diff)
Merge deploy/master (gateway/proxy fixes) with doot-native task completion fix
Reconciles diverged histories: deploy/master had gateway proxy Host-header and publicPaths fixes that were never synced back to local/github; this branch had the native-task Tasks-tab/completion fix. Merging both.
Diffstat (limited to 'internal/handlers')
-rw-r--r--internal/handlers/proxy.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/handlers/proxy.go b/internal/handlers/proxy.go
index ce10a6a..ce328ef 100644
--- a/internal/handlers/proxy.go
+++ b/internal/handlers/proxy.go
@@ -31,6 +31,7 @@ func NewServiceProxy(targetURL, allowedOrigin, pathPrefix string) http.Handler {
Director: func(req *http.Request) {
req.URL.Scheme = target.Scheme
req.URL.Host = target.Host
+ req.Host = target.Host // use upstream host so loopback services see a loopback Host header
req.URL.Path = stripPrefix(req.URL.Path)
if req.URL.RawPath != "" {
req.URL.RawPath = stripPrefix(req.URL.RawPath)