Clean JSON before post request to update configuration
This commit is contained in:
parent
bad526bd54
commit
c6728aa8fa
6 changed files with 123 additions and 13 deletions
|
|
@ -52,6 +52,13 @@ type AuthSSLCert struct {
|
|||
|
||||
// Equal tests for equality between two AuthSSLCert types
|
||||
func (asslc1 *AuthSSLCert) Equal(assl2 *AuthSSLCert) bool {
|
||||
if asslc1 == assl2 {
|
||||
return true
|
||||
}
|
||||
if asslc1 == nil || assl2 == nil {
|
||||
return false
|
||||
}
|
||||
|
||||
if asslc1.Secret != assl2.Secret {
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue