From 52212979929b1c62e4b7d1e6927313c0d69a6201 Mon Sep 17 00:00:00 2001 From: evgenigourvitch Date: Thu, 11 Oct 2018 11:35:37 +0300 Subject: [PATCH 1/2] change Lmt to be ptr to allow passing zero values when needed. --- device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device.go b/device.go index fc3b527..597d055 100644 --- a/device.go +++ b/device.go @@ -51,7 +51,7 @@ type Device struct { // “Limit Ad Tracking” signal commercially endorsed (e.g., iOS, // Android), where 0 = tracking is unrestricted, 1 = tracking must // be limited per commercial guidelines. - Lmt int8 `json:"lmt,omitempty"` + Lmt *int8 `json:"lmt,omitempty"` // Attribute: // ip From 209df6ddf9aad017e63c28980b03140d32d0176a Mon Sep 17 00:00:00 2001 From: evgenigourvitch Date: Fri, 12 Oct 2018 00:26:42 +0300 Subject: [PATCH 2/2] apply the same rule on DNT as for Lmt --- device.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device.go b/device.go index 597d055..4d1ef8c 100644 --- a/device.go +++ b/device.go @@ -41,7 +41,7 @@ type Device struct { // Description: // Standard “Do Not Track” flag as set in the header by the // browser, where 0 = tracking is unrestricted, 1 = do not track. - DNT int8 `json:"dnt,omitempty"` + DNT *int8 `json:"dnt,omitempty"` // Attribute: // lmt