mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-22 11:09:02 -05:00
graph: Add comment to fix and remove expected test failures
Fixes: #5083
This commit is contained in:
@@ -76,7 +76,13 @@ type Graph struct {
|
||||
|
||||
// ServeHTTP implements the Service interface.
|
||||
func (g Graph) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
// There was a number of issues with the chi router and parameters with
|
||||
// slashes/percentage/other characters that didn't get properly escaped.
|
||||
// This is a workaround to fix this. Also, we're not the only ones who have
|
||||
// tried to fix this, as seen in this issue:
|
||||
// https://github.com/go-chi/chi/issues/641#issuecomment-883156692
|
||||
r.URL.RawPath = r.URL.EscapedPath()
|
||||
|
||||
g.mux.ServeHTTP(w, r)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user