formatting
This commit is contained in:
@@ -44,13 +44,14 @@ public class OtherUtil
|
||||
{
|
||||
if(url==null)
|
||||
return null;
|
||||
try {
|
||||
try
|
||||
{
|
||||
URL u = new URL(url);
|
||||
URLConnection urlConnection = u.openConnection();
|
||||
urlConnection.setRequestProperty("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36");
|
||||
return urlConnection.getInputStream();
|
||||
} catch(IOException|IllegalArgumentException e) {
|
||||
}
|
||||
catch(IOException|IllegalArgumentException e) {}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user