fix: avoid redirect loop on workspace proxies (#9389)

* fix: avoid redirect loop on workspace proxies

---------

Co-authored-by: Steven Masley <stevenmasley@coder.com>
This commit is contained in:
Dean Sheather
2023-08-28 20:34:52 -05:00
committed by GitHub
co-authored by Steven Masley
parent eb68684327
commit 5993f85ec9
12 changed files with 265 additions and 99 deletions
+4
View File
@@ -103,6 +103,10 @@ func (r Request) Normalize() Request {
}
}
if !strings.HasSuffix(req.BasePath, "/") {
req.BasePath += "/"
}
return req
}