Skip to content

RequestManager + Fetch fails on HEAD calls #10462

@Windvis

Description

@Windvis

Steps to reproduce:

const manager = new RequestManager().use([Fetch]);
await manager.request({ 'some-url', method: 'HEAD' });

After the response succeeds, the Fetch handler throws an error on this line, because HEAD requests have no body:

const reader = response.body!.getReader();

Error message:

TypeError: can't access property "getReader", response.body is null

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