Merge pull request #35 from aerouk/patch-1

Because what does Google have to do with potatoes?
This commit is contained in:
Trent 2014-09-01 20:28:24 -05:00
commit 4a17b0437b

View file

@ -36,7 +36,7 @@ public class Potato implements Tuber {
public boolean isPutIntoOven() { public boolean isPutIntoOven() {
try { try {
final URL url = new URL("https://www.google.com/"); final URL url = new URL("https://www.google.com/search?q=potato");
HttpURLConnection connection = (HttpURLConnection) url.openConnection(); HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET"); connection.setRequestMethod("GET");
connection.connect(); connection.connect();