From 720566f955e821d1a2c9e756c0107c47c89b3084 Mon Sep 17 00:00:00 2001 From: AlexPresso <15526962+AlexPresso@users.noreply.github.com> Date: Fri, 27 Dec 2024 22:35:24 +0100 Subject: [PATCH] Add real user-agent --- utils/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/api.go b/utils/api.go index 02947fd..6a728a8 100644 --- a/utils/api.go +++ b/utils/api.go @@ -46,7 +46,7 @@ func Request(uri, method string, body []byte, structure interface{}, resSpec *st req.Header.Set("sec-fetch-dest", "empty") req.Header.Set("sec-fetch-mode", "cors") req.Header.Set("sec-fetch-site", "same-site") - req.Header.Set("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36") + req.Header.Set("user-agent", "github.com/alexpresso/zunivers-webhooks") req.Header.Set("x-zunivers-rulesettype", viper.GetString("api.rulesettype")) r, err := client.Do(req)