Skip to content

Commit

Permalink
Update DigestAuthorization.ino (esp8266#6029)
Browse files Browse the repository at this point in the history
Fix WiFiClient vs. HttpClient declaration order
  • Loading branch information
devyte authored May 1, 2019
1 parent 33a4c6a commit 0da6906
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ void setup() {
}

void loop() {
HTTPClient http;

WiFiClient client;
HTTPClient http; //must be declared after WiFiClient for correct destruction order, because used by http.begin(client,...)

Serial.print("[HTTP] begin...\n");

Expand Down

0 comments on commit 0da6906

Please sign in to comment.