1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

Merge pull request #2057 from scottfitzenrider/base64Authorization-strip-newlines

Update ESP8266HTTPClient.cpp
This commit is contained in:
Ivan Grokhotkov 2016-06-01 11:04:43 +08:00
commit a26ec346b3

View File

@ -865,6 +865,7 @@ bool HTTPClient::sendHeader(const char * type)
} }
if(_base64Authorization.length()) { if(_base64Authorization.length()) {
_base64Authorization.replace("\n", "");
header += F("Authorization: Basic "); header += F("Authorization: Basic ");
header += _base64Authorization; header += _base64Authorization;
header += "\r\n"; header += "\r\n";