diff --git a/mux_test.go b/mux_test.go index f2ff0c6..66c09b0 100644 --- a/mux_test.go +++ b/mux_test.go @@ -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 {