Skip to content

BodyInit extract is not supported with arrayBuffer #350

Closed

Description

@tamird

1529c83 added support for arrayBuffer() for POST responses only, but I can't tell why.

Specifically, in cockroachdb/cockroach#7178 I am relying on arrayBuffer() working in GET responses, which fails under whatwg-fetch but works in Chrome because chrome has native fetch support.

Was there a reason that arrayBuffer() support was omitted for non-POST responses? If not, could you add this support now?

EDIT: turns out this is just a simple issue with BodyInit; see https://fetch.spec.whatwg.org/#concept-bodyinit-extract.

Activity

  1. changed the title [-]arrayBuffer() is not supported on GET responses[/-] [+]BodyInit extract is not supported with arrayBuffer[/+] on Jun 14, 2016
  2. tamird commented on Jun 14, 2016

    @tamird
    ContributorAuthor

    Updated description - original report was incorrect.

  3. locked as resolved and limited conversation to collaborators on Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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