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.
1 parent 633bad7 commit 86fc299Copy full SHA for 86fc299
src/main/java/YouTubeSearchApi/utility/Utils.java
@@ -20,7 +20,7 @@ public class Utils {
20
*/
21
public static String httpRequest(String url) throws IOException {
22
URLConnection connection = new URL(url).openConnection();
23
- connection.setRequestProperty("User-Agent", "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2");
+ connection.setRequestProperty("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36");
24
connection.connect();
25
26
InputStreamReader inputStreamReader = new InputStreamReader(connection.getInputStream(),
0 commit comments