mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
co-authored by
Steven Masley
parent
eb68684327
commit
5993f85ec9
@@ -103,6 +103,10 @@ func (r Request) Normalize() Request {
|
||||
}
|
||||
}
|
||||
|
||||
if !strings.HasSuffix(req.BasePath, "/") {
|
||||
req.BasePath += "/"
|
||||
}
|
||||
|
||||
return req
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user