mirror of
https://github.com/RuoJi6/ARTEX.git
synced 2026-11-16 15:03:49 +08:00
fix: remove application fingerprints from public responses
This commit is contained in:
1 parent
c0b558fa1e
commit
5203176364
9 files changed
+195
-20
No files matched your search
@@ -273,7 +273,7 @@ func TestBasicAuthGate(t *testing.T) {
|
||||
if w.Code != tc.want {
|
||||
t.Fatalf("status=%d want %d: %s", w.Code, tc.want, w.Body.String())
|
||||
}
|
||||
if w.Code == 401 && w.Header().Get("WWW-Authenticate") != `Basic realm="ARTEX", charset="UTF-8"` {
|
||||
if w.Code == 401 && w.Header().Get("WWW-Authenticate") != `Basic realm="Restricted", charset="UTF-8"` {
|
||||
t.Fatal("missing browser challenge")
|
||||
}
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user