summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-06 18:43:51 -0500
committerJeff Carr <[email protected]>2025-09-06 18:49:02 -0500
commit867a4f973e41201d3a8692737f1431b5a6e7e8fc (patch)
treeaf18dc41542bdb44146bc550e8fce287e5611507
parent3729df67a53750d0a5d67bdd9166737384b06bb8 (diff)
moved to httppb
-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
-}