Hostname is compared as follows in ESPWebThingAdapter.h
if (value == name + ".local" || value == ip || value == "localhost") { return true; }
This leads to any uppercase or CamelCase hostnames to be rejected because browsers tend toconvert them to lowercase during request. I would suggest changing the code as follows:
if (value.equalsIgnoreCase(name + ".local") || value == ip || value == "localhost") { return true; }
I believe the same problem exists in EthernetWebThingAdapter.h but couldn't verify that the same fix works there.
Hostname is compared as follows in ESPWebThingAdapter.h
if (value == name + ".local" || value == ip || value == "localhost") { return true; }
This leads to any uppercase or CamelCase hostnames to be rejected because browsers tend toconvert them to lowercase during request. I would suggest changing the code as follows:if (value.equalsIgnoreCase(name + ".local") || value == ip || value == "localhost") { return true; }
I believe the same problem exists in EthernetWebThingAdapter.h but couldn't verify that the same fix works there.