From a1bb47b18030e9873cddd0cffba513bdd146b6f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 24 Mar 2023 12:10:58 +0100 Subject: [PATCH] drop commented code --- services/invitations/pkg/server/http/server.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/services/invitations/pkg/server/http/server.go b/services/invitations/pkg/server/http/server.go index d091d52f80..5c04542f44 100644 --- a/services/invitations/pkg/server/http/server.go +++ b/services/invitations/pkg/server/http/server.go @@ -91,7 +91,6 @@ func InvitationHandler(service svc.Service) func(w http.ResponseWriter, r *http. i := &invitations.Invitation{} err := json.NewDecoder(r.Body).Decode(i) if err != nil { - // logger.Debug().Err(err).Interface("body", r.Body).Msg("could not invite user: invalid request body") errorcode.InvalidRequest.Render(w, r, http.StatusBadRequest, fmt.Sprintf("invalid request body: %v", err.Error())) return } @@ -103,7 +102,6 @@ func InvitationHandler(service svc.Service) func(w http.ResponseWriter, r *http. return } - // w.Header().Set("Content-type", "application/json") render.Status(r, http.StatusCreated) render.JSON(w, r, res) }