chore: circle CI (#14)

License: MIT
Signed-off-by: Henrique Dias <[email protected]>
This commit is contained in:
Henrique Dias
2019-05-12 12:59:33 +01:00
committed by GitHub
parent 61462c1da7
commit 505a10a63d
4 changed files with 43 additions and 23 deletions
+1 -1
View File
@@ -240,7 +240,7 @@ func basicAuth(c *cfg) http.Handler {
w.Header().Set("WWW-Authenticate", `Basic realm="Restricted"`)
username, password, authOK := r.BasicAuth()
if authOK == false {
if !authOK {
http.Error(w, "Not authorized", 401)
return
}