options: header only applies to routes and authN (#1862)

Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com>
This commit is contained in:
bobby 2021-02-08 11:05:33 -08:00 committed by GitHub
parent 7b06d37913
commit fcd8c3644f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 50 deletions

View file

@ -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")
}
}