Skip to content

Commit

Permalink
Add version number to user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
jamy015 committed Nov 2, 2016
1 parent d79613f commit 8d034ec
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 8d034ec

Please sign in to comment.