summaryrefslogtreecommitdiff
path: root/http.go
diff options
context:
space:
mode:
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)