From ac41996e6b21594565569b7637cc10ed419476b3 Mon Sep 17 00:00:00 2001 From: "Shashank S. Harivyasi" <45761248+harivyasi@users.noreply.github.com> Date: Thu, 21 Sep 2023 05:23:37 +0200 Subject: [PATCH 1/2] change default user agent to meet specification --- v3/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3/client.go b/v3/client.go index d960815..2474fbc 100644 --- a/v3/client.go +++ b/v3/client.go @@ -49,7 +49,7 @@ type Client struct { // NewClient returns a new file download Client, using default configuration. func NewClient() *Client { return &Client{ - UserAgent: "grab", + UserAgent: "grab/3" HTTPClient: &http.Client{ Transport: &http.Transport{ Proxy: http.ProxyFromEnvironment, From 8c2888629d88f30e0c2b3c2ff1df2e248164e20f Mon Sep 17 00:00:00 2001 From: "Shashank S. Harivyasi" <45761248+harivyasi@users.noreply.github.com> Date: Thu, 21 Sep 2023 05:33:15 +0200 Subject: [PATCH 2/2] fix typo --- v3/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v3/client.go b/v3/client.go index 2474fbc..ef49a5b 100644 --- a/v3/client.go +++ b/v3/client.go @@ -49,7 +49,7 @@ type Client struct { // NewClient returns a new file download Client, using default configuration. func NewClient() *Client { return &Client{ - UserAgent: "grab/3" + UserAgent: "grab/3", HTTPClient: &http.Client{ Transport: &http.Transport{ Proxy: http.ProxyFromEnvironment,