Add equality check of CustomHeaders to a Location

This commit is contained in:
jgoelen 2024-07-31 11:07:28 +02:00
parent 4cbaa41468
commit 1280f560ee
3 changed files with 16 additions and 2 deletions

View file

@ -470,6 +470,10 @@ func (l1 *Location) Equal(l2 *Location) bool {
return false
}
if !l1.CustomHeaders.Equal(&l2.CustomHeaders) {
return false
}
return true
}

View file

@ -302,7 +302,12 @@
"validationDepth": 0
},
"use-port-in-redirects": false,
"configuration-snippet": ""
"configuration-snippet": "",
"customHeaders": {
"headers": {
"Server": "HAL9000"
}
}
}]
}, {
"hostname": "dev.mycompany.com",

View file

@ -302,7 +302,12 @@
"validationDepth": 0
},
"use-port-in-redirects": false,
"configuration-snippet": ""
"configuration-snippet": "",
"customHeaders": {
"headers": {
"Server": "HAL9000"
}
}
}]
}, {
"hostname": "dev.mycompany.com",