From b67c73ad5ecd53cffaa80398910c8b770376a291 Mon Sep 17 00:00:00 2001 From: ale <ale@incal.net> Date: Tue, 5 Nov 2013 10:04:35 +0000 Subject: [PATCH] fix the url in the outgoing request --- http.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/http.go b/http.go index 036a91b3..beec4e6b 100644 --- a/http.go +++ b/http.go @@ -107,8 +107,9 @@ func (h *HttpRedirector) serveSource(w http.ResponseWriter, r *http.Request) { // Proxy the resulting connection. proxy := &httputil.ReverseProxy{ - Director: func(r *http.Request) { - r.URL.Host = masterAddr + Director: func(req *http.Request) { + req.URL.Host = masterAddr + req.URL.Path = mount.Name }, FlushInterval: time.Second, } -- GitLab