1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 12:57:05 +00:00

no need to default the Configuration.RemoteAddrHeaders to a list of 'dissalowed' header names, the ctx.RemoteAddr() made unnecessary checks if no X-header was passed, even if they defaulted to false, this will not give a crazy improvement but it's a good practise

Former-commit-id: ba9ed1475a76489df16cac0ed87275b5604f2ad0
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-01-25 06:31:05 +02:00
parent bf13f7648a
commit 981322cfd2
8 changed files with 54 additions and 33 deletions

View File

@@ -47,7 +47,7 @@ func TestSubdomainWWW(t *testing.T) {
req := e.Request(test.method, test.path)
if subdomain := test.subdomain; subdomain != "" {
req = req.WithURL("http://" + subdomain + "." + host)
req.WithURL("http://" + subdomain + "." + host)
}
req.Expect().