Compare commits

..

2 Commits

Author SHA1 Message Date
wpetit 8a751afc97 chore: add http debug env in default environment file
Cadoles/bouncer/pipeline/head This commit looks good Details
2024-06-26 13:53:52 +02:00
wpetit 4907c0b51f feat: return status 502 on proxy error 2024-06-26 13:53:22 +02:00
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
GODEBUG="http1debug=2 http2debug=2"

View File

@ -191,7 +191,7 @@ func (s *Server) errorHandler(w http.ResponseWriter, r *http.Request, err error)
logger.Error(r.Context(), "proxy error", logger.E(err)) logger.Error(r.Context(), "proxy error", logger.E(err))
sentry.CaptureException(err) sentry.CaptureException(err)
http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError) http.Error(w, http.StatusText(http.StatusBadGateway), http.StatusBadGateway)
} }
func NewServer(funcs ...OptionFunc) *Server { func NewServer(funcs ...OptionFunc) *Server {