Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix bug for TLSVersion.MarshalYAML
Signed-off-by: Yen-Cheng Chou <3055688+StevenYCChou@users.noreply.github.com>
  • Loading branch information
StevenYCChou authored Oct 14, 2022
commit 0a9bd64bf614cb82659c0dfb3e5822c137eedcb9
2 changes: 1 addition & 1 deletion config/http_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (tv *TLSVersion) UnmarshalJSON(data []byte) error {

// MarshalJSON implements the json.Marshaler interface for TLSVersion.
func (tv *TLSVersion) MarshalJSON() ([]byte, error) {
if tv != nil || *tv == 0 {
if tv == nil || *tv == 0 {
return []byte("null"), nil
}
for s, v := range TLSVersions {
Expand Down