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
When creating code snippet from a request with basic authentication using user:password format, the Authorization in the snippet is not encoded with base64.
For example
GET https://httpbin.org/basic-auth/user/passwd HTTP/1.1
Authorization: Basic user:passwd
Result:
GET /basic-auth/user/passwd HTTP/1.1
User-Agent: vscode-restclient
Authorization: Basic user:passwd
Host: httpbin.org
But using user password format works correctly.
GET https://httpbin.org/basic-auth/user/passwd HTTP/1.1
Authorization: Basic user passwd
Result:
GET /basic-auth/user/passwd HTTP/1.1
User-Agent: vscode-restclient
Authorization: Basic dXNlcjpwYXNzd2Q=
Host: httpbin.org
Maybe because of this line where it splits the user and password using a space only:
When creating code snippet from a request with basic authentication using user:password format, the Authorization in the snippet is not encoded with base64.
For example
Result:
But using user password format works correctly.
Result:
Maybe because of this line where it splits the user and password using a space only:
vscode-restclient/src/controllers/codeSnippetController.ts
Line 194 in c7e783b
The text was updated successfully, but these errors were encountered: