diff options
| author | Jeff Carr <[email protected]> | 2025-09-06 19:50:40 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-06 20:07:59 -0500 |
| commit | eae2c3be2bcd6c30fc665ab1a99edb26110115d2 (patch) | |
| tree | 3caf78a5effe790dd8c0c65efa4a9ffc2bd2d620 /http.go | |
| parent | 4e5a34b772db9df404b0b927f3ee9b9b54f65cdd (diff) | |
keep working towards common http PBv0.0.23
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) |
