Skip to content

Commit

Permalink
fix: always include all_domains in json output
Browse files Browse the repository at this point in the history
Previously the all_domains would be absent from the json if it was empty.
This means that clients that expected the array could crash.

Related to #26
  • Loading branch information
d-Rickyy-b committed Jan 16, 2024
1 parent 9f52357 commit 1d3a6e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/certstream/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ type Source struct {
}

type LeafCert struct {
AllDomains []string `json:"all_domains,omitempty"`
AllDomains []string `json:"all_domains"`
AsDER string `json:"as_der,omitempty"`
Extensions Extensions `json:"extensions"`
Fingerprint string `json:"fingerprint"`
Expand Down

0 comments on commit 1d3a6e4

Please sign in to comment.