1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-06-23 00:40:46 +02:00

Fix some typos

This commit is contained in:
ferhat elmas
2019-08-13 12:42:23 +02:00
parent e1b70dc9f0
commit fb52bdb90c
3 changed files with 5 additions and 5 deletions

View File

@ -898,7 +898,7 @@ func isAjax(req *http.Request) bool {
return false
}
// ErrorJSON returns the error code witht an application/json mime type
// ErrorJSON returns the error code with an application/json mime type
func (p *OAuthProxy) ErrorJSON(rw http.ResponseWriter, code int) {
rw.Header().Set("Content-Type", applicationJSON)
rw.WriteHeader(code)