Skip to content

Commit 1d1637b

Browse files
committed
Remove middleware unnecessarily pruning /clusters/.../ from URL path
Signed-off-by: Nelo-T. Wallus <[email protected]> Signed-off-by: Nelo-T. Wallus <[email protected]>
1 parent b0389c3 commit 1d1637b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pkg/server/filters/inactivelogicalcluster.go

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,9 @@ func WithBlockInactiveLogicalClusters(handler http.Handler, kcpClusterClient cor
3939
}
4040

4141
return func(w http.ResponseWriter, req *http.Request) {
42-
_, newURL, _, err := ClusterPathFromAndStrip(req)
43-
if err != nil {
44-
responsewriters.InternalError(w, req, err)
45-
return
46-
}
47-
4842
isException := false
4943
for _, prefix := range allowedPathPrefixes {
50-
if strings.HasPrefix(newURL.String(), prefix) {
44+
if strings.HasPrefix(req.URL.String(), prefix) {
5145
isException = true
5246
}
5347
}

0 commit comments

Comments
 (0)