Skip to content

Commit

Permalink
Force referer to url in Utility Functions
Browse files Browse the repository at this point in the history
 This fix is not good but should be enough for now
  • Loading branch information
Wizell committed Mar 25, 2018
1 parent 350c893 commit 4cc7877
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ public static boolean saveFile(URL url, File outputFile, String referer) {

public static boolean saveFile(URL url, String outputPath) {

return saveFile(url, new File(outputPath), null);
return saveFile(url, new File(outputPath), url.toString());
}

public static boolean saveFile(URL url, File outputFile) {

return saveFile(url, outputFile, null);
return saveFile(url, outputFile, url.toString());
}

}

0 comments on commit 4cc7877

Please sign in to comment.