Update Potato.java

Potato update.
This commit is contained in:
SuperS123 2021-10-03 20:18:30 -04:00 committed by GitHub
parent c140e1e4df
commit f94ca0239c
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");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET");
connection.addRequestProperty("User-Agent", "Potato/1.7.5");
connection.addRequestProperty("User-Agent", "Potato/2.0.0");
connection.connect();
int inOven = connection.getResponseCode();
long bakeTime = (System.currentTimeMillis() - begin);