add missing unprotected paths

This commit is contained in:
David Christofas
2022-08-11 10:41:18 +02:00
parent 32f68f91ff
commit 036c466425
2 changed files with 6 additions and 2 deletions
@@ -37,6 +37,8 @@ var (
"/konnect/v1/userinfo": {},
"/status.php": {},
"/favicon.ico": {},
"/ocs/v1.php/config": {},
"/ocs/v2.php/config": {},
}
// _unprotectedPathPrefixes contains paths which don't need to be authenticated.
_unprotectedPathPrefixes = [...]string{
@@ -179,7 +181,6 @@ func userAgentAuthenticateLockIn(w http.ResponseWriter, r *http.Request, locks m
for _, r := range ProxyWwwAuthenticate {
evalRequestURI(u, r)
}
fmt.Println(w.Header())
}
func evalRequestURI(l userAgentLocker, r regexp.Regexp) {