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:
commit
a26ec346b3
@ -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";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user