formatting

This commit is contained in:
John Grosh
2018-11-21 18:43:27 -05:00
parent e1b07868fd
commit 2aac68b412
2 changed files with 10 additions and 16 deletions

View File

@@ -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;
}