mirror of
https://github.com/restic/rest-server.git
synced 2025-10-18 23:23:19 +00:00
check that proxy header is ignored if not enabled
This commit is contained in:
parent
0dfc772cdb
commit
68ae5d1c0b
1 changed files with 8 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue