Skip to content

Commit

Permalink
CJS7: Capitalise x-stream-client (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amin Mahboubi authored Mar 2, 2021
1 parent 4c5b6d3 commit 69d9e8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2385,7 +2385,7 @@ export class StreamChat<
headers: {
Authorization: token,
'stream-auth-type': this.getAuthType(),
'x-stream-client': this.getUserAgent(),
'X-Stream-Client': this.getUserAgent(),
...options.headers,
},
...options.config,
Expand Down
2 changes: 1 addition & 1 deletion src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export class StableWSConnection<
};
const qs = encodeURIComponent(JSON.stringify(params));
const token = this.tokenManager.getToken();
return `${this.wsBaseURL}/connect?json=${qs}&api_key=${this.apiKey}&authorization=${token}&stream-auth-type=${this.authType}&x-stream-client=${this.userAgent}`;
return `${this.wsBaseURL}/connect?json=${qs}&api_key=${this.apiKey}&authorization=${token}&stream-auth-type=${this.authType}&X-Stream-Client=${this.userAgent}`;
};

/**
Expand Down

0 comments on commit 69d9e8d

Please sign in to comment.