Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.

fix(core): move `multipart/mixed` to end of accept headers (#3039)

Co-authored-by: Phil Pluckthun <phil@kitten.sh>

Changed files
+7 -1
.changeset
packages
core
src
internal
+5
.changeset/early-crabs-draw.md
···
+
---
+
'@urql/core': patch
+
---
+
+
Move `multipart/mixed` to end of `Accept` header to avoid cauing Yoga to unnecessarily use it.
+2 -1
packages/core/src/internal/fetchOptions.ts
···
): RequestInit => {
const useGETMethod =
operation.kind === 'query' && !!operation.context.preferGetMethod;
+
const headers: HeadersInit = {
accept:
-
'multipart/mixed, application/graphql-response+json, application/graphql+json, application/json',
+
'application/graphql-response+json, application/graphql+json, application/json, multipart/mixed',
};
if (!useGETMethod) headers['content-type'] = 'application/json';
const extraOptions =