Skip to content

Commit da00f1c

Browse files
committed
fix(www): accept application/graphql-response+json content type in gqlFetch
1 parent a2484e2 commit da00f1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

www/src/components/FlowsPanel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ async function gqlFetch(endpoint: string, query: string, variables: Record<strin
286286
body: JSON.stringify({ query, variables }),
287287
});
288288
const contentType = res.headers.get('content-type') || '';
289-
if (!contentType.includes('application/json')) {
289+
if (!contentType.includes('json')) {
290290
throw new Error(`GraphQL server returned ${res.status} (${contentType || 'no content-type'}). Is the server running on port 6464? Run: make up`);
291291
}
292292
const json = await res.json();

0 commit comments

Comments
 (0)