Skip to content

Commit

Permalink
Merge pull request #34 from benceszasz/dev
Browse files Browse the repository at this point in the history
Change agent to avoid HTTP 504
  • Loading branch information
benceszasz authored Aug 19, 2023
2 parents c10265c + 166b3d1 commit 6966afa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,9 @@ protected void addHttpHeaders(Request.Builder requestBuilder, RequestType type)

//Add common browser headers
requestBuilder.addHeader("Accept-Language", "en;q=0.9, *;q=0.8").addHeader("Connection", "keep-alive")
.addHeader("sec-ch-ua", "\"Chromium\";v=\"112\", \"Google Chrome\";v=\"112\", \"Not:A-Brand\";v=\"99\"")
.addHeader("Sec-Ch-Ua", "\"Not/A)Brand\";v=\"99\", \"Google Chrome\";v=\"115\", \"Chromium\";v=\"115\"")
.addHeader("User-Agent",
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36")
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36")
//.addHeader("Connection", "keep-alive");
;

Expand Down

0 comments on commit 6966afa

Please sign in to comment.