Skip to content

Commit

Permalink
Merge pull request #1462 from ably/fix-double-encoded-agent
Browse files Browse the repository at this point in the history
fix: don't double url encode agent transport param
  • Loading branch information
owenpearson authored Oct 19, 2023
2 parents 374252c + 1de1a64 commit 0d7dd24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/lib/transport/connectionmanager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export class TransportParams {
params.heartbeats = this.heartbeats;
}
params.v = Defaults.protocolVersion;
params.agent = encodeURIComponent(getAgentString(this.options));
params.agent = getAgentString(this.options);
if (options.transportParams !== undefined) {
Utils.mixin(params, options.transportParams);
}
Expand Down

0 comments on commit 0d7dd24

Please sign in to comment.