Skip to content

JSON response should not parse body when status is 204 NO CONTENT #255

@cristiandouce

Description

@cristiandouce

At this line:

function Response(req, options) {
  // ...
  this.body = this.parseBody(this.text);
}

When response type is json... the parse function throws an error when trying to parse an empty string.

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