Skip to content

Commit 82d47df

Browse files
committed
Update Utils.java
1 parent ab8cc0f commit 82d47df

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/main/java/YouTubeSearchApi/utility/Utils.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ public class Utils {
2121
public static String httpRequest(String url) throws IOException {
2222
URLConnection connection = new URL(url).openConnection();
2323

24-
connection.setRequestProperty("User-Agent",
25-
"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11");
26-
2724
connection.connect();
2825

2926
InputStreamReader inputStreamReader = new InputStreamReader(connection.getInputStream(),

0 commit comments

Comments
 (0)