From f91cd5806efe95d06b38ed15d425e655af7a31b5 Mon Sep 17 00:00:00 2001 From: Bryant Park Date: Fri, 26 Jul 2024 10:26:37 -0400 Subject: [PATCH] Remove X-OSDK-Request-Context header (#531) * Remove X-OSDK-Request-Context header * Add changeset --- .changeset/itchy-goats-pump.md | 5 +++++ .../client/src/util/addUserAgentAndRequestContextHeaders.ts | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 .changeset/itchy-goats-pump.md diff --git a/.changeset/itchy-goats-pump.md b/.changeset/itchy-goats-pump.md new file mode 100644 index 000000000..69638f653 --- /dev/null +++ b/.changeset/itchy-goats-pump.md @@ -0,0 +1,5 @@ +--- +"@osdk/client": patch +--- + +Temporarily disable X-OSDK-Request-Context header diff --git a/packages/client/src/util/addUserAgentAndRequestContextHeaders.ts b/packages/client/src/util/addUserAgentAndRequestContextHeaders.ts index eec649969..88e759817 100644 --- a/packages/client/src/util/addUserAgentAndRequestContextHeaders.ts +++ b/packages/client/src/util/addUserAgentAndRequestContextHeaders.ts @@ -26,11 +26,6 @@ export const addUserAgentAndRequestContextHeaders = ( fetch: createFetchHeaderMutator( client.fetch, (headers) => { - headers.set( - "X-OSDK-Request-Context", - JSON.stringify(client.requestContext), - ); - if (withMetadata.osdkMetadata) { headers.set( "Fetch-User-Agent",