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

Uri with ':' inside it are misinterpreted. #83

Open
lowlevl opened this issue Aug 17, 2019 · 0 comments
Open

Uri with ':' inside it are misinterpreted. #83

lowlevl opened this issue Aug 17, 2019 · 0 comments

Comments

@lowlevl
Copy link

lowlevl commented Aug 17, 2019

let data = await r2('https://bibliotheques-specialisees.paris.fr/ark:/73873/pf0000855431/0001/v0001.simple.selectedTab=otherdocs').text;
console.log(data);

outputs nothing because the : is misinterpreted as a port marker, when it's not a port, but

let data = await r2('https://bibliotheques-specialisees.paris.fr/ark\\:/73873/pf0000855431/0001/v0001.simple.selectedTab=otherdocs').text;
console.log(data);

works.

Furthermore the Promise resolves correctly but with an empty .text, thus leaving us without a way to handle it.

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

No branches or pull requests

1 participant