moved to httppb

This commit is contained in:
Jeff Carr 2025-09-06 18:43:51 -05:00
parent 3729df67a5
commit 867a4f973e
1 changed files with 1 additions and 7 deletions

View File

@ -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
}