Skip to content

Commit

Permalink
Add real user-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPresso committed Dec 27, 2024
1 parent 23d9ea4 commit 720566f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 720566f

Please sign in to comment.