Skip to content

Commit

Permalink
Get rid of deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Feb 23, 2020
1 parent babe203 commit 3ba5eaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,8 @@ void WebServer::aliases() {

String json = "";
HTTPClient http;
http.begin(F(VERSIONJSONLOC));
WiFiClient client;
http.begin(client, F(VERSIONJSONLOC));
http.addHeader(F("Cache-Control"), F("no-cache"));
if (http.GET() > 0) {
json = http.getString();
Expand Down

0 comments on commit 3ba5eaf

Please sign in to comment.