qa: Update the reverse proxy
This commit is contained in:
parent
4473166ee7
commit
32632322d4
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ func serveOrReverse(forced_url string, baseURL string) func(c *gin.Context) {
|
||||||
if u, err := url.Parse(DevProxy); err != nil {
|
if u, err := url.Parse(DevProxy); err != nil {
|
||||||
http.Error(c.Writer, err.Error(), http.StatusInternalServerError)
|
http.Error(c.Writer, err.Error(), http.StatusInternalServerError)
|
||||||
} else {
|
} else {
|
||||||
if forced_url != "" {
|
if forced_url != "" && forced_url != "/" {
|
||||||
u.Path = path.Join(u.Path, forced_url)
|
u.Path = path.Join(u.Path, forced_url)
|
||||||
} else {
|
} else {
|
||||||
u.Path = path.Join(u.Path, strings.TrimPrefix(c.Request.URL.Path, baseURL))
|
u.Path = path.Join(u.Path, strings.TrimPrefix(c.Request.URL.Path, baseURL))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue