Skip to content

Commit f783234

Browse files
authored
Omit the HstsConfiguration and TLSConfigurations fields when they are empty (#582)
1 parent 06c9190 commit f783234

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

incapsula/client_site_ssl_settings.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type HSTSConfiguration struct {
1717

1818
type InboundTLSSettingsConfiguration struct {
1919
ConfigurationProfile string `json:"configurationProfile"`
20-
TLSConfigurations []TLSConfiguration `json:"tlsConfiguration"`
20+
TLSConfigurations []TLSConfiguration `json:"tlsConfiguration,omitempty"`
2121
}
2222

2323
type TLSConfiguration struct {
@@ -26,7 +26,7 @@ type TLSConfiguration struct {
2626
}
2727

2828
type SSLSettingsDTO struct {
29-
HstsConfiguration *HSTSConfiguration `json:"hstsConfiguration"`
29+
HstsConfiguration *HSTSConfiguration `json:"hstsConfiguration,omitempty"`
3030
InboundTLSSettingsConfiguration *InboundTLSSettingsConfiguration `json:"inboundTlsSettings,omitempty"`
3131
}
3232

0 commit comments

Comments
 (0)