From d795dbeb610a8b0aa315e39175f574dd5ee0cc4e Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 5 Sep 2025 14:16:34 -0500 Subject: [PATCH] set route in PB --- handlePatches.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/handlePatches.go b/handlePatches.go index 904da49..c9d7d38 100644 --- a/handlePatches.go +++ b/handlePatches.go @@ -16,6 +16,12 @@ func handlePatches(w http.ResponseWriter, r *http.Request) error { } route := pb.HttpRequest.Route + if route == "" { + route = cleanURL(r.URL.Path) + } + if route == "" { + route = "route was blank" + } if strings.HasPrefix(route, "/patches/old") { processPatchesPB(r, pb) } else if strings.HasPrefix(route, "/patches/old") {