Skip to content

Commit a26ec34

Browse files
committed
Merge pull request #2057 from scottfitzenrider/base64Authorization-strip-newlines
Update ESP8266HTTPClient.cpp
2 parents c50d6ff + 0ac3781 commit a26ec34

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/ESP8266HTTPClient/src/ESP8266HTTPClient.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,7 @@ bool HTTPClient::sendHeader(const char * type)
865865
}
866866

867867
if(_base64Authorization.length()) {
868+
_base64Authorization.replace("\n", "");
868869
header += F("Authorization: Basic ");
869870
header += _base64Authorization;
870871
header += "\r\n";

0 commit comments

Comments
 (0)