mirror of
https://github.com/kataras/iris.git
synced 2025-12-23 21:07:03 +00:00
NEW: Application#SubdomainRedirect. Example: https://github.com/kataras/iris/blob/master/_examples/subdomains/redirect/main.go
Former-commit-id: d8dd7c426dc9f14c870f103fef703595a2915612
This commit is contained in:
@@ -735,7 +735,7 @@ func WithConfiguration(c Configuration) Configurator {
|
||||
|
||||
if v := c.RemoteAddrHeaders; len(v) > 0 {
|
||||
if main.RemoteAddrHeaders == nil {
|
||||
main.RemoteAddrHeaders = make(map[string]bool)
|
||||
main.RemoteAddrHeaders = make(map[string]bool, len(v))
|
||||
}
|
||||
for key, value := range v {
|
||||
main.RemoteAddrHeaders[key] = value
|
||||
@@ -744,7 +744,7 @@ func WithConfiguration(c Configuration) Configurator {
|
||||
|
||||
if v := c.Other; len(v) > 0 {
|
||||
if main.Other == nil {
|
||||
main.Other = make(map[string]interface{})
|
||||
main.Other = make(map[string]interface{}, len(v))
|
||||
}
|
||||
for key, value := range v {
|
||||
main.Other[key] = value
|
||||
|
||||
Reference in New Issue
Block a user