Commit 7b55cbb0 authored by Yu-Ju Hong's avatar Yu-Ju Hong

Merge pull request #10569 from yifan-gu/authn

apiservier: avoid stacktracing when http.StatusUnauthorized.
parents ad88cf9a b30e77c1
...@@ -125,6 +125,8 @@ func RecoverPanics(handler http.Handler) http.Handler { ...@@ -125,6 +125,8 @@ func RecoverPanics(handler http.Handler) http.Handler {
http.StatusTemporaryRedirect, http.StatusTemporaryRedirect,
http.StatusConflict, http.StatusConflict,
http.StatusNotFound, http.StatusNotFound,
http.StatusUnauthorized,
http.StatusForbidden,
errors.StatusUnprocessableEntity, errors.StatusUnprocessableEntity,
http.StatusSwitchingProtocols, http.StatusSwitchingProtocols,
), ),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment