Add equality check of CustomHeaders to a Location
This commit is contained in:
parent
4cbaa41468
commit
1280f560ee
3 changed files with 16 additions and 2 deletions
|
@ -470,6 +470,10 @@ func (l1 *Location) Equal(l2 *Location) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !l1.CustomHeaders.Equal(&l2.CustomHeaders) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -302,7 +302,12 @@
|
||||||
"validationDepth": 0
|
"validationDepth": 0
|
||||||
},
|
},
|
||||||
"use-port-in-redirects": false,
|
"use-port-in-redirects": false,
|
||||||
"configuration-snippet": ""
|
"configuration-snippet": "",
|
||||||
|
"customHeaders": {
|
||||||
|
"headers": {
|
||||||
|
"Server": "HAL9000"
|
||||||
|
}
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
}, {
|
}, {
|
||||||
"hostname": "dev.mycompany.com",
|
"hostname": "dev.mycompany.com",
|
||||||
|
|
|
@ -302,7 +302,12 @@
|
||||||
"validationDepth": 0
|
"validationDepth": 0
|
||||||
},
|
},
|
||||||
"use-port-in-redirects": false,
|
"use-port-in-redirects": false,
|
||||||
"configuration-snippet": ""
|
"configuration-snippet": "",
|
||||||
|
"customHeaders": {
|
||||||
|
"headers": {
|
||||||
|
"Server": "HAL9000"
|
||||||
|
}
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
}, {
|
}, {
|
||||||
"hostname": "dev.mycompany.com",
|
"hostname": "dev.mycompany.com",
|
||||||
|
|
Loading…
Reference in a new issue