diff options
Diffstat (limited to 'http.go')
| -rw-r--r-- | http.go | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -117,7 +117,14 @@ func okHandler(w http.ResponseWriter, r *http.Request) { } if strings.HasPrefix(route, "/patches/") { - handlePatches(w, r, reqPB.Body) + /* + pb, err := forgepb.GetPatchesFromHttp(reqPB) + if err != nil { + log.Info("error converting to patches PB") + return + } + handlePatches(w, pb) + */ return } @@ -150,11 +157,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) { return } - if strings.HasPrefix(route, "/patches/") { - handlePatches(w, r, reqPB.Body) - return - } - if route == "/patchset" { if err := savePatchset(w, reqPB.Body); err != nil { log.Warn("forged /patchset error", err) |
