Merge pull request #1590 from philipbjorge/patch-3
Fix Equals Comparison for CORS annotation
This commit is contained in:
commit
979464081d
1 changed files with 3 additions and 0 deletions
|
@ -79,6 +79,9 @@ func (c1 *CorsConfig) Equal(c2 *CorsConfig) bool {
|
|||
if c1.CorsAllowHeaders != c2.CorsAllowHeaders {
|
||||
return false
|
||||
}
|
||||
if c1.CorsAllowMethods != c2.CorsAllowMethods {
|
||||
return false
|
||||
}
|
||||
if c1.CorsAllowOrigin != c2.CorsAllowOrigin {
|
||||
return false
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue