mirror of
https://github.com/syncthing/syncthing.git
synced 2026-04-14 03:17:36 -04:00
Expect session cookie for basic auth at /
This commit is contained in:
@@ -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