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
11161116 catch: (cause) => graphqlToolError(`Failed decoding GraphQL response for ${input.path}`, cause),
11171117 });
11181118
1119+ const responseHeaders: Record<string, string> = {};
1120+ response.headers.forEach((value, key) => {
1121+ responseHeaders[key] = value;
1122+ });
1123+
11191124 return {
11201125 status: response.status,
1121− headers: sanitizeResponseHeaders(Object.fromEntries(response.headers)),
1126+ headers: sanitizeResponseHeaders(responseHeaders),
11221127 body,
11231128 isError: response.status >= 400 || hasGraphqlErrors(body),
11241129 };

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