Skip to content

Commit

Permalink
chore: synchronize workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Jul 18, 2023
1 parent e455978 commit 938c9b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions proxy/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ func TestProxy(t *testing.T) {
conf.SetForTest(t, configuration.ProxyTrustForwardedHeaders, true)
},
transform: func(r *http.Request) {
r.Header.Set("X-Forwarded-For", "foobar.com")
r.Header.Set("X-Forwarded-Host", "foobar.com")
},
url: ts.URL + "/authn-anon/authz-allow/cred-noop/1234",
rulesRegexp: []rule.Rule{{
Expand All @@ -231,13 +231,13 @@ func TestProxy(t *testing.T) {
"authorization=",
"url=/authn-anon/authz-allow/cred-noop/1234",
"host=" + x.ParseURLOrPanic(backend.URL).Host,
"header X-Forwarded-Proto=http",
"header X-Forwarded-Host=foobar.com",
},
},
{
d: "should pass and remove x-forwarded headers",
transform: func(r *http.Request) {
r.Header.Set("X-Forwarded-For", "foobar.com")
r.Header.Set("X-Forwarded-Host", "foobar.com")
},
url: ts.URL + "/authn-anon/authz-allow/cred-noop/1234",
rulesRegexp: []rule.Rule{{
Expand All @@ -256,7 +256,7 @@ func TestProxy(t *testing.T) {
}},
code: http.StatusOK,
messagesNot: []string{
"header X-Forwarded-Proto=http",
"header X-Forwarded-Host=foobar.com",t

Check failure on line 259 in proxy/proxy_test.go

View workflow job for this annotation

GitHub Actions / format

missing ',' before newline in composite literal

Check failure on line 259 in proxy/proxy_test.go

View workflow job for this annotation

GitHub Actions / format

missing ',' before newline in composite literal
},
},
{
Expand Down

0 comments on commit 938c9b3

Please sign in to comment.