summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-06 19:50:40 -0500
committerJeff Carr <[email protected]>2025-09-06 20:07:59 -0500
commiteae2c3be2bcd6c30fc665ab1a99edb26110115d2 (patch)
tree3caf78a5effe790dd8c0c65efa4a9ffc2bd2d620 /http.go
parent4e5a34b772db9df404b0b927f3ee9b9b54f65cdd (diff)
keep working towards common http PBv0.0.23
Diffstat (limited to 'http.go')
-rw-r--r--http.go14
1 files changed, 8 insertions, 6 deletions
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)