Merge pull request #10569 from yifan-gu/authn

apiservier: avoid stacktracing when http.StatusUnauthorized.
This commit is contained in:
Yu-Ju Hong 2015-07-06 15:05:12 -07:00
commit 7b55cbb0bd

View File

@ -125,6 +125,8 @@ func RecoverPanics(handler http.Handler) http.Handler {
http.StatusTemporaryRedirect,
http.StatusConflict,
http.StatusNotFound,
http.StatusUnauthorized,
http.StatusForbidden,
errors.StatusUnprocessableEntity,
http.StatusSwitchingProtocols,
),