Skip to content

Commit

Permalink
set req client language
Browse files Browse the repository at this point in the history
  • Loading branch information
juzeon committed Apr 5, 2024
1 parent ffab1de commit 2f98937
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func Ternary[T any](expression bool, trueResult T, falseResult T) T {
}
func MakeHTTPClient(proxy string, timeout time.Duration) (*http.Client, *req.Client, error) {
transport := http.DefaultTransport.(*http.Transport).Clone()
reqClient := req.C().ImpersonateChrome()
reqClient := req.C().ImpersonateChrome().SetCommonHeader("accept-language", "en-US,en;q=0.9")
if proxy != "" { // user filled proxy
proxyURL, err := url.Parse(proxy)
if err != nil {
Expand Down

0 comments on commit 2f98937

Please sign in to comment.