Skip to content
Snippets Groups Projects
Commit b67c73ad authored by ale's avatar ale
Browse files

fix the url in the outgoing request

parent c94d91e4
Branches
No related tags found
No related merge requests found
......@@ -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,
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment