From 56ba587d9d6af6042eafd147add6f058f2e562ab Mon Sep 17 00:00:00 2001 From: Katsuki Niwa <35918681+Katsukiniwa@users.noreply.github.com> Date: Fri, 20 Jan 2023 19:42:56 +0900 Subject: [PATCH] Fix sua browsers type (#96) --- sua.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sua.go b/sua.go index a6a2477..0cf493c 100644 --- a/sua.go +++ b/sua.go @@ -3,7 +3,7 @@ package openrtb import "encoding/json" type UserAgent struct { - Browsers BrandVersion `json:"browsers,omitempty"` // A browser or similar software component + Browsers []BrandVersion `json:"browsers,omitempty"` // A browser or similar software component Platform BrandVersion `json:"platform,omitempty"` // The user agent’s execution platform / OS Mobile int `json:"mobile,omitempty"` // 1 if the agent prefers a "mobile" version of the content, if available, i.e. optimized for small screens or touch input. 0 if the agent prefers the "desktop". Taken from Sec-CH-UAMobile header Architecture string `json:"architecture,omitempty"` // Device’s major binary architecture, e.g. "x86" or "arm". Taken from the Sec-CH-UA-Arch header