Skip to content

Make binary GETs work #10

@awlayton

Description

@awlayton

When I do a GET on a binary resource the data I get back is corrupted. Please see below for the oada-cache call I tried and then an axios request which returns the correct data.

const { data, headers } = await conn.get({ path })
const { data, headers } = await axios.get(path, {
  baseURL: domain,
  headers: { Authorization: `Bearer ${token}` },
  responseType: 'arraybuffer'
})

Perhaps all that is needed to address this is a way to ask oada-cachefor an arraybuffer response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions