Skip to content

Commit 1d3a6e4

Browse files
committed
fix: always include all_domains in json output
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
1 parent 9f52357 commit 1d3a6e4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/certstream/models.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ type Source struct {
104104
}
105105

106106
type LeafCert struct {
107-
AllDomains []string `json:"all_domains,omitempty"`
107+
AllDomains []string `json:"all_domains"`
108108
AsDER string `json:"as_der,omitempty"`
109109
Extensions Extensions `json:"extensions"`
110110
Fingerprint string `json:"fingerprint"`

0 commit comments

Comments
 (0)