Skip to content

Commit 3589de2

Browse files
authored
Indicate user agent should be descriptive (#167)
1 parent 5970b87 commit 3589de2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

example/tibber/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ func startSubscription() error {
4848
HTTPClient: &http.Client{
4949
Transport: headerRoundTripper{
5050
setHeaders: func(req *http.Request) {
51-
req.Header.Set("User-Agent", "go-graphql-client/0.9.0")
51+
// Replace MyHomeAutomationPlatformReplaceMe/1.3.4 with a name that describes where you are running this client on
52+
req.Header.Set("User-Agent", "MyHomeAutomationPlatformReplaceMe/1.2.3 hasura/go-graphql-client/0.13.1")
5253
},
5354
rt: http.DefaultTransport,
5455
},

0 commit comments

Comments
 (0)