Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ClientRequest): decode uri for username and password before setting basic authentication header #567

Merged
merged 2 commits into from
Apr 29, 2024

Conversation

Copy link
Member

@kettanaito kettanaito left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is incredible! Thank you so much, @mdesousa 👏

@@ -125,6 +125,7 @@ it('preserves "auth" (Authorization)', async () => {

// Construct an Axios request with "auth".
await axios.get(httpServer.http.url('/books'), {
adapter: 'http',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, so the trick was using the HTTP adapter. By default, Axios is using XHR, right? Good catch.

@kettanaito kettanaito changed the title fix: decode uri for username and password before setting basic authentication header fix(ClientRequest): decode uri for username and password before setting basic authentication header Apr 29, 2024
@kettanaito
Copy link
Member

Welcome to the contributors, @mdesousa 🎉

@kettanaito kettanaito merged commit b08838e into mswjs:fix/axios-auth-email Apr 29, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants