From b97b685b96a5e55fd7764e4e0849822640f0912b Mon Sep 17 00:00:00 2001 From: Adi Ofry Date: Thu, 15 Sep 2016 14:51:54 +0300 Subject: [PATCH] prevent printing of stack trace when proxying 304 requests in api gateway --- pkg/apiserver/handlers.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/apiserver/handlers.go b/pkg/apiserver/handlers.go index 35d4e5af78..e82e7836f6 100644 --- a/pkg/apiserver/handlers.go +++ b/pkg/apiserver/handlers.go @@ -152,6 +152,7 @@ func RecoverPanics(handler http.Handler) http.Handler { http.StatusNotFound, http.StatusUnauthorized, http.StatusForbidden, + http.StatusNotModified, errors.StatusUnprocessableEntity, http.StatusSwitchingProtocols, ),