Apply auth to http path as well
This commit is contained in:
@@ -21,7 +21,7 @@ func (hs *Handlers) basicAuth(next http.Handler) http.Handler {
|
||||
|
||||
// needsAuth checks if the given path requires authentication.
|
||||
func needsAuth(path string) bool {
|
||||
authenticatedPaths := []string{"/dav/", "/infuse/"}
|
||||
authenticatedPaths := []string{"/http/", "/dav/", "/infuse/"}
|
||||
for _, p := range authenticatedPaths {
|
||||
if strings.HasPrefix(path, p) {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user