mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-04 01:09:36 +02:00
options: header only applies to routes and authN (#1862)
Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
parent
7b06d37913
commit
fcd8c3644f
5 changed files with 4 additions and 50 deletions
|
@ -230,7 +230,7 @@ func TestRedirect(t *testing.T) {
|
|||
|
||||
assert.Equal(t, http.StatusMovedPermanently, res.StatusCode, "should redirect to https")
|
||||
for k, v := range src.GetConfig().Options.Headers {
|
||||
assert.Equal(t, v, res.Header.Get(k), "should add header")
|
||||
assert.NotEqual(t, v, res.Header.Get(k), "should ignore options header")
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue