fix http middlewares

This commit is contained in:
A.Unger
2020-04-22 12:31:12 +02:00
parent 55db2f72d0
commit 96b97ec00d
5 changed files with 18 additions and 7 deletions
+5 -4
View File
@@ -77,10 +77,11 @@ func (h *webBundleServiceHandler) ListSettingsBundles(w http.ResponseWriter, r *
resp := &ListSettingsBundlesResponse{}
//if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
// http.Error(w, err.Error(), http.StatusPreconditionFailed)
// return
//}
// TODO no need to parse any body on a get request. This code shoud be removed fro GET endpoints
// if err := json.NewDecoder(r.Body).Decode(&req); err != nil {
// http.Error(w, err.Error(), http.StatusPreconditionFailed)
// return
// }
if err := h.h.ListSettingsBundles(
context.Background(),