Skip to content

@hey-api/client-fetch Returns response as Blob for Accept: "application/ld+json" #1288

@zilvinas-abromavicius-surfshark

Description

Description

It seems that when passing header to Accept ld+json format, the response returned is a Blob instead of a json.
E.g. I initialize the client as such:

  const client = createClient({
    baseUrl,
    headers: {
      Accept: "application/ld+json",
    },
  });

And when logging, I get such result for response.data: data: Blob { size: 162241, type: 'application/ld+json;charset=utf-8' },

Reproducible example or configuration

No response

OpenAPI specification (optional)

No response

System information (optional)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🔥Broken or incorrect behavior.important 📌This issue is important and will be addressed when capacity allows.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions