set route in PB
This commit is contained in:
parent
b2af891b20
commit
d795dbeb61
|
@ -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") {
|
||||
|
|
Loading…
Reference in New Issue