Skip to content

Commit

Permalink
Merge pull request #99 from jamy015/user-agent
Browse files Browse the repository at this point in the history
Add version number to user agent
  • Loading branch information
drtshock authored Nov 3, 2016
2 parents d79613f + 8d034ec commit 9940c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/drtshock/Potato.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public boolean isPutIntoOven() throws OvenException {
final URL url = new URL("https://www.google.com/search?q=potato");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET");
connection.addRequestProperty("User-Agent", "Potato");
connection.addRequestProperty("User-Agent", "Potato/1.7.5");
connection.connect();
int inOven = connection.getResponseCode();
return inOven == 200;
Expand Down

0 comments on commit 9940c49

Please sign in to comment.