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
In situations that use Basic auth and do not pass the parameter "password" requestHeaders.Authorization is concatenated unduly ": undefined".
To Reproduce
Any request using Basic Authentication without passing the parameter "password" as an example below.
varaxios=require("axios")constinstance=axios.create();instance.request({method: 'POST',baseURL: ".../XPTO",auth: {username: "janedoe"}}).then(// do something);
Expected behavior
To maintain compatibility with previous versions, the proper behavior would be to test if the parameter "password" was passed, otherwise concatenate empty.
A problem arising from the lack of compatibility with previous versions is to force all current projects that do not pass a "password" parameter to have to include this parameter with an empty value.
The text was updated successfully, but these errors were encountered:
Describe the bug
In situations that use Basic auth and do not pass the parameter "password" requestHeaders.Authorization is concatenated unduly ": undefined".
To Reproduce
Any request using Basic Authentication without passing the parameter "password" as an example below.
Expected behavior
To maintain compatibility with previous versions, the proper behavior would be to test if the parameter "password" was passed, otherwise concatenate empty.
Environment
Additional context/Screenshots
A problem arising from the lack of compatibility with previous versions is to force all current projects that do not pass a "password" parameter to have to include this parameter with an empty value.
The text was updated successfully, but these errors were encountered: