Fix typo in HttpClient HTTPS example (#876)

This commit is contained in:
Tim Boldt 2022-09-24 19:23:56 -07:00 committed by GitHub
parent 7a85c3917f
commit 3768aa7e1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,12 +27,12 @@ WiFiClientSecure documentation for more details.
// Error checking is left as an exercise for the reader...
HTTPClient https;
https.setInsecure(); // Use certs, but do not check their authenticity
https.setInsecure(); // Use certs, but do not check their authenticity
if (https.begin("https://my.secure.server/url")) {
if (http.GET() > 0) {
String data = http.getString();
if (https.GET() > 0) {
String data = https.getString();
}
http.end();
https.end();
}
Unlike the ESP8266 and ESP32 ``HTTPClient`` implementations it is not necessary