summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--http.go8
1 files changed, 1 insertions, 7 deletions
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
-}