We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 310bff3 + 0f60ca3 commit 45a579aCopy full SHA for 45a579a
main.go
@@ -6,6 +6,8 @@ import (
6
7
const authHeaderName = "Authorization"
8
const authHeaderFormat = "Token %v"
9
+const languageHeaderName = "Accept-Language"
10
+const languageHeaderValue = "en-US"
11
12
func NewAPIClientFor(host string, token string) *APIClient {
13
cfg := NewConfiguration()
@@ -17,5 +19,10 @@ func NewAPIClientFor(host string, token string) *APIClient {
17
19
fmt.Sprintf(authHeaderFormat, token),
18
20
)
21
22
+ cfg.AddDefaultHeader(
23
+ languageHeaderName,
24
+ languageHeaderValue,
25
+ )
26
+
27
return NewAPIClient(cfg)
28
}
0 commit comments