aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/drtshock/Potato.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/drtshock/Potato.java b/src/main/java/org/drtshock/Potato.java
index 6c53aea..81e02f4 100644
--- a/src/main/java/org/drtshock/Potato.java
+++ b/src/main/java/org/drtshock/Potato.java
@@ -79,6 +79,7 @@ public class Potato implements Tuber {
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.connect();
int inOven = connection.getResponseCode();
return inOven == 200;