Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static public Map<String, String> getWebSocketHeaders(){

static public Map<String, List<String>> getStreamSourceHeaders(String accessKey){
Map<String, List<String>> headers = new HashMap<>();
headers.put("User-Agent", Collections.singletonList("Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0"));
headers.put("User-Agent", Collections.singletonList("Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"));
headers.put("Accept", Collections.singletonList("*/*"));
headers.put("Accept-Language", Collections.singletonList("en-US,en;q=0.5"));
headers.put("Accept-Encoding", Collections.singletonList("gzip, deflate, br"));
Expand All @@ -158,7 +158,7 @@ static public Map<String, List<String>> getStreamSourceHeaders(String accessKey)

static public Map<String, List<String>> getPreFetchStreamHeaders(){
Map<String, List<String>> headers = new HashMap<>();
headers.put("User-Agent", Collections.singletonList("Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0"));
headers.put("User-Agent", Collections.singletonList("Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"));
headers.put("Accept", Collections.singletonList("*/*"));
headers.put("Accept-Language", Collections.singletonList("en-US,en;q=0.5"));
headers.put("Accept-Encoding", Collections.singletonList("gzip, deflate, br"));
Expand All @@ -178,7 +178,7 @@ static public Map<String, List<String>> getPreFetchStreamHeaders(){

static public Map<String, List<String>> getStreamHeaders(String cookie){
HashMap<String, List<String>> headers = new HashMap<>();
headers.put("User-Agent", Collections.singletonList("Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0"));
headers.put("User-Agent", Collections.singletonList("Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"));
headers.put("Accept", Collections.singletonList("*/*"));
headers.put("Accept-Language", Collections.singletonList("en-US,en;q=0.5"));
headers.put("Accept-Encoding", Collections.singletonList("gzip, deflate, br"));
Expand Down