1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-21 10:26:06 +03:00

Change BSSL_CertStore test URL (#7370)

github.com forwards to www.github.com
So reaching out for "www.github.com" returns HTTP 304 instead of the nice HTTP 204
This commit is contained in:
kinafu 2020-07-16 21:07:40 +02:00 committed by GitHub
parent dfd5a4f12b
commit 709ba7981e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,8 +148,8 @@ void setup() {
BearSSL::WiFiClientSecure *bear = new BearSSL::WiFiClientSecure();
// Integrate the cert store with this connection
bear->setCertStore(&certStore);
Serial.printf("Attempting to fetch https://www.github.com/...\n");
fetchURL(bear, "www.github.com", 443, "/");
Serial.printf("Attempting to fetch https://github.com/...\n");
fetchURL(bear, "github.com", 443, "/");
delete bear;
}