1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

Merge branch 'master' into my_changes_on_2.1.0-rc1

This commit is contained in:
Joost Jager
2016-01-12 21:26:09 +01:00
44 changed files with 421 additions and 85 deletions

View File

@ -107,7 +107,7 @@ void HTTPClient::begin(String url, String httpsFingerprint) {
int index = url.indexOf(':');
//int index2;
bool hasPort = false;
if(index) {
if(index >= 0) {
protocol = url.substring(0, index);
url.remove(0, (index + 3)); // remove http:// or https://