Remove headers set by a trusted proxy from outputs

This commit is contained in:
2022-05-02 18:00:36 +02:00
parent 7c70abf07f
commit 1ee7256506
7 changed files with 38 additions and 18 deletions

View File

@ -102,9 +102,6 @@ func TestClientPort(t *testing.T) {
params []string
headers map[string][]string
}
type expected struct {
body string
}
tests := []struct {
name string
args args
@ -249,8 +246,6 @@ ASN Organization:
Header1: one
Host: test
X-Real-Ip: 81.2.69.192
X-Real-Port: 1001
`
_, _ = setting.Setup(
[]string{