mirror of
https://github.com/hacdias/webdav.git
synced 2026-09-23 19:51:53 +08:00
chore: circle CI (#14)
License: MIT Signed-off-by: Henrique Dias <[email protected]>
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user