From eae2c3be2bcd6c30fc665ab1a99edb26110115d2 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 6 Sep 2025 19:50:40 -0500 Subject: keep working towards common http PB --- http.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'http.go') diff --git a/http.go b/http.go index a88d6c3..8637d14 100644 --- a/http.go +++ b/http.go @@ -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) -- cgit v1.2.3