diff --git a/http.go b/http.go index 2cb8e09..c278558 100644 --- a/http.go +++ b/http.go @@ -126,7 +126,7 @@ func (pb *Patches) AddHttpToPB(r *http.Request) error { Host: r.Host, Hostname: r.Header.Get("hostname"), } - pb.HttpRequest.Route = cleanURL(r.URL.Path) + // pb.HttpRequest.Route = cleanURL(r.URL.Path) return nil } @@ -155,9 +155,3 @@ func getClientIP(r *http.Request) string { } return host } - -// remove '?' part and trailing '/' -func cleanURL(url string) string { - url = "/" + strings.Trim(url, "/") - return url -}