diff options
| author | Jeff Carr <[email protected]> | 2025-09-05 14:16:34 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-05 14:17:28 -0500 |
| commit | d795dbeb610a8b0aa315e39175f574dd5ee0cc4e (patch) | |
| tree | 876a2ab794537388da921169c808792ea0188083 | |
| parent | b2af891b203ba28b74dc703e423fc7691cb3a3f1 (diff) | |
set route in PB
| -rw-r--r-- | handlePatches.go | 6 |
1 files changed, 6 insertions, 0 deletions
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") { |
