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

Authentication parameters in url does not work on 2.6.3 #1302

Closed
Kaspanoombro opened this issue Sep 21, 2021 · 2 comments
Closed

Authentication parameters in url does not work on 2.6.3 #1302

Kaspanoombro opened this issue Sep 21, 2021 · 2 comments
Labels

Comments

@Kaspanoombro
Copy link

Reproduction

Steps to reproduce the behavior:

  1. node
  2. FETCH = require('node-fetch');
  3. FETCH("http://admin:p#ass!word@localhost:5984/mydatabase").then(r => {return r.json();}).then(l => {console.log(l);});

Expected behavior
Return the response from database but instead i always get access denied. The error does not occur with node-fecth@2.6.2

Your Environment

software version
node-fetch 2.6.3
node 16.9.1
npm 7.24.0
Operating System
Ubuntu 20.04LTS or 16.04LTS
@jimmywarting
Copy link
Collaborator

jimmywarting commented Sep 21, 2021

dupl of #1300
Think we got a fix for it already #1301

@jimmywarting
Copy link
Collaborator

Think we got a fix for it already (#1301)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants