Skip to content

Commit

Permalink
Change user agent to avoid HTTP 504
Browse files Browse the repository at this point in the history
  • Loading branch information
benceszasz committed Aug 19, 2023
1 parent d09843f commit 166b3d1
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 166b3d1

Please sign in to comment.