From afdbb1ea776cd0a9a1dc753d9f6dcc4add57cd2d Mon Sep 17 00:00:00 2001 From: TwinProduction Date: Mon, 30 Nov 2020 09:40:57 -0500 Subject: [PATCH] Don't return unnecessary data --- core/result.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/result.go b/core/result.go index 5c538c64..acc6f399 100644 --- a/core/result.go +++ b/core/result.go @@ -10,7 +10,7 @@ type Result struct { HTTPStatus int `json:"status"` // DNSRCode is the response code of a DNS query in a human readable format - DNSRCode string `json:"dns-rcode"` + DNSRCode string `json:"-"` // Body is the response body Body []byte `json:"-"` @@ -40,5 +40,5 @@ type Result struct { Timestamp time.Time `json:"timestamp"` // CertificateExpiration is the duration before the certificate expires - CertificateExpiration time.Duration `json:"certificate-expiration,omitempty"` + CertificateExpiration time.Duration `json:"-"` }