From 94060f216290748a92c792eb3c0e4302aa0dd3ba Mon Sep 17 00:00:00 2001 From: kinafu <20564946+kinafu@users.noreply.github.com> Date: Sat, 13 Jun 2020 19:20:51 +0200 Subject: [PATCH] Change test URL github.com forwards to www.github.com So reaching out for "www.github.com" returns HTTP 304 instead of the nice HTTP 204 --- .../examples/BearSSL_CertStore/BearSSL_CertStore.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/ESP8266WiFi/examples/BearSSL_CertStore/BearSSL_CertStore.ino b/libraries/ESP8266WiFi/examples/BearSSL_CertStore/BearSSL_CertStore.ino index 48bfd0e2c2..a599a0395a 100644 --- a/libraries/ESP8266WiFi/examples/BearSSL_CertStore/BearSSL_CertStore.ino +++ b/libraries/ESP8266WiFi/examples/BearSSL_CertStore/BearSSL_CertStore.ino @@ -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; }