Merge pull request #165 from SuperS123/patch-1

Update Potato Version
This commit is contained in:
Trent Hensler 2021-10-04 11:19:39 -05:00 committed by GitHub
commit 21c3dcd7ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public class Potato implements Tuber {
final URL url = new URL("https://www.google.com/search?q=potato"); 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.addRequestProperty("User-Agent", "Potato/1.7.5"); connection.addRequestProperty("User-Agent", "Potato/2.0.0");
connection.connect(); connection.connect();
int inOven = connection.getResponseCode(); int inOven = connection.getResponseCode();
long bakeTime = (System.currentTimeMillis() - begin); long bakeTime = (System.currentTimeMillis() - begin);