Skip to content

DigestClient.prototype.fetch incorrectly overwrites headers on forwarded request #42

@wgehring-ml

Description

@wgehring-ml

DigestClient.prototype.fetch is currently expecting its arguments to be in the form (url: string, init: RequestInit), but the fetch API also supports arguments in the form of (request: RequestInfo, init: undefined). This means when passing a proxied request to a client's fetch implementation, all of the original request's headers are lost.

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