diff options
| author | Jeff Carr <[email protected]> | 2025-09-06 18:43:51 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-06 18:49:02 -0500 |
| commit | 867a4f973e41201d3a8692737f1431b5a6e7e8fc (patch) | |
| tree | af18dc41542bdb44146bc550e8fce287e5611507 /http.go | |
| parent | 3729df67a53750d0a5d67bdd9166737384b06bb8 (diff) | |
moved to httppb
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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 -} |
