summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--handlePatches.go6
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") {