mirror of
https://github.com/rancher/steve.git
synced 2025-08-31 23:20:56 +00:00
Improve counts and columns
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package proxy
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@@ -85,7 +84,6 @@ func prependPath(prefix string, h http.Handler) http.Handler {
|
||||
// regexps will work.)
|
||||
func stripLeaveSlash(prefix string, h http.Handler) http.Handler {
|
||||
return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
|
||||
fmt.Println(req.Method, req.URL.Path)
|
||||
p := strings.TrimPrefix(req.URL.Path, prefix)
|
||||
if len(p) >= len(req.URL.Path) {
|
||||
http.NotFound(w, req)
|
||||
|
Reference in New Issue
Block a user