Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@lowlevl

Description

@lowlevl
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions