1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-23 21:07:03 +00:00
Former-commit-id: d8dd7c426dc9f14c870f103fef703595a2915612
This commit is contained in:
Gerasimos (Makis) Maropoulos
2018-01-20 05:17:31 +02:00
parent a4ff39df65
commit e176ff7b0c
15 changed files with 384 additions and 24 deletions

View File

@@ -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