Modify http status code to variable in README (#350)

* Modify http status code to variable

* Modify doc

* Modify README
This commit is contained in:
Geon Kim
2018-02-26 14:11:51 +09:00
committed by Kamil Kisiel
parent d284fd8421
commit 07ba1fd60e

View File

@@ -473,7 +473,7 @@ func (amw *authenticationMiddleware) Middleware(next http.Handler) http.Handler
next.ServeHTTP(w, r) next.ServeHTTP(w, r)
} else { } else {
// Write an error and stop the handler chain // Write an error and stop the handler chain
http.Error(w, "Forbidden", 403) http.Error(w, "Forbidden", http.StatusForbidden)
} }
}) })
} }