check that proxy header is ignored if not enabled

This commit is contained in:
Michael Eischer 2025-02-17 22:36:03 +01:00
parent 0dfc772cdb
commit 68ae5d1c0b

View file

@ -51,6 +51,14 @@ func TestCheckAuth(t *testing.T) {
},
expectedOk: false,
},
{
name: "Proxy Auth send but not enabled",
server: &Server{},
requestHeaders: map[string]string{
"X-Remote-User": "restic",
},
expectedOk: false,
},
}
for _, tt := range tests {