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:
@@ -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().
|
||||
|
||||
Reference in New Issue
Block a user