mirror of
https://github.com/restic/rest-server.git
synced 2025-12-06 17:15:45 -08:00
check that proxy header is ignored if not enabled
This commit is contained in:
@@ -51,6 +51,14 @@ func TestCheckAuth(t *testing.T) {
|
|||||||
},
|
},
|
||||||
expectedOk: false,
|
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 {
|
for _, tt := range tests {
|
||||||
|
|||||||
Reference in New Issue
Block a user