From e12936b9fb76d4a6774f787bb33b91ae1b772fa5 Mon Sep 17 00:00:00 2001 From: Owen Pearson Date: Wed, 6 Apr 2022 17:15:53 +0100 Subject: [PATCH] Remove errant encoding of Ably-Agent headers --- common/lib/util/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/util/utils.ts b/common/lib/util/utils.ts index 8258460857..edd7c13e3b 100644 --- a/common/lib/util/utils.ts +++ b/common/lib/util/utils.ts @@ -352,7 +352,7 @@ export function defaultGetHeaders(format?: Format): Record { return { accept: accept, 'X-Ably-Version': Defaults.apiVersion, - 'Ably-Agent': encodeURIComponent(Defaults.agent), + 'Ably-Agent': Defaults.agent, }; } @@ -364,7 +364,7 @@ export function defaultPostHeaders(format?: Format): Record { accept: accept, 'content-type': contentType, 'X-Ably-Version': Defaults.apiVersion, - 'Ably-Agent': encodeURIComponent(Defaults.agent), + 'Ably-Agent': Defaults.agent, }; }