Skip to content
This repository was archived by the owner on Jun 6, 2024. It is now read-only.
This repository was archived by the owner on Jun 6, 2024. It is now read-only.

node-fetch resolves the location header instead of leaving it as is #154

@cdloh

Description

@cdloh

Tried to create an issue on the other repo but cannot.

Within node-fetch if the fetch operation returns a redirect node-fetch resolves the URL which means relative URLs aren't left as is. This is different from what the fetch API does within CF (and all browsers).

				const locationURL = location === null ? null : url.resolve(request.url, location);

It should be left as is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions