You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[STALE_SET] This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions.
I
----------------------------- Remove above -----------------------------
Hardware:
Board: nodemcu-32s
Core Installation version: 1.0.4
IDE name: Arduino IDE
Flash Frequency: 240Mhz
PSRAM enabled: no
Upload Speed: 115200
Computer OS: Windows 10
Description:
Unable to set header "Authorization: Sign ..." when using HttpClient
When using HTTPClient libraries, looking at the source code:
HttpClient.cpp:
.......
void HTTPClient::addHeader(const String& name, const String& value, bool first, bool replace)
{
// not allow set of Header handled by code
if(!name.equalsIgnoreCase(F("Connection")) &&
!name.equalsIgnoreCase(F("User-Agent")) &&
!name.equalsIgnoreCase(F("Host")) &&
!(name.equalsIgnoreCase(F("Authorization")) && _base64Authorization.length())){
and look at how the code do it as:
if(_base64Authorization.length()) {
_base64Authorization.replace("\n", "");
header += F("Authorization: Basic ");
header += _base64Authorization;
header += "\r\n";
}
Please add additional way or remove this constraint in order to set header "Authorization: Sign UriqJfnonwY2TGGJkYcd0q0lxzcTiHZzrA8bPELb0qE=.
The text was updated successfully, but these errors were encountered: