mirror of
https://github.com/syncthing/syncthing.git
synced 2026-10-20 10:14:25 -04:00
Expect session cookie for basic auth at /
This commit is contained in:
1 file changed
+2
@@ -744,9 +744,11 @@ func TestHTTPLogin(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
testWith(true, http.StatusOK, http.StatusOK, "/")
|
||||
testWith(true, http.StatusOK, http.StatusUnauthorized, "/meta.js")
|
||||
testWith(true, http.StatusNotFound, http.StatusUnauthorized, "/any-path/that/does/nooooooot/match-any/noauth-pattern")
|
||||
|
||||
testWith(false, http.StatusOK, http.StatusOK, "/")
|
||||
testWith(false, http.StatusOK, http.StatusForbidden, "/meta.js")
|
||||
testWith(false, http.StatusNotFound, http.StatusForbidden, "/any-path/that/does/nooooooot/match-any/noauth-pattern")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user