Add equality check of CustomHeaders to a Location
This commit is contained in:
parent
ec121e2f2e
commit
1373e55c0c
3 changed files with 16 additions and 2 deletions
|
@ -467,6 +467,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