Skip to content

Commit

Permalink
🐛 do not prepend /
Browse files Browse the repository at this point in the history
  • Loading branch information
linkdd committed Jun 10, 2024
1 parent f8af3b3 commit f639d5e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ func (h *ProxyHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
)
r.URL.Scheme = h.remote.Scheme
r.URL.Host = h.remote.Host
r.URL.Path = h.remote.Path + r.URL.Path

if h.remote.Path != "" && h.remote.Path != "/" {
r.URL.Path = h.remote.Path + r.URL.Path
}

rule_ApiProjectsFix(r)

Expand Down

0 comments on commit f639d5e

Please sign in to comment.