History

oauth

Rhys Sullivan committed 8 months ago

Commit aa596e21 parent 477f8054 files · +66 −9Browse files

Showing the changes to packages (1 of 4 files). Show all

Unified · Split

packages/control-plane/src/runtime/graphql-tools.ts+6−1
@@ -1116,9 +1116,14 @@ const invokeGraphqlHttpRequest = (input: GraphqlHttpInvocation) => · 1115 unmodified lines
1116 catch: (cause) => graphqlToolError(`Failed decoding GraphQL response for ${input.path}`, cause),1116 catch: (cause) => graphqlToolError(`Failed decoding GraphQL response for ${input.path}`, cause),
1117 });1117 });
1118 1118
1119 const responseHeaders: Record<string, string> = {};
1120 response.headers.forEach((value, key) => {
1121 responseHeaders[key] = value;
1122 });
1123
1119 return {1124 return {
1120 status: response.status,1125 status: response.status,
1121 headers: sanitizeResponseHeaders(Object.fromEntries(response.headers)),1126 headers: sanitizeResponseHeaders(responseHeaders),
1122 body,1127 body,
1123 isError: response.status >= 400 || hasGraphqlErrors(body),1128 isError: response.status >= 400 || hasGraphqlErrors(body),
1124 };1129 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t