fix: header casing
This commit is contained in:
@@ -350,7 +350,7 @@ class StreamChatClient {
|
|||||||
Map<String, String> get _httpHeaders => {
|
Map<String, String> get _httpHeaders => {
|
||||||
'Authorization': token,
|
'Authorization': token,
|
||||||
'stream-auth-type': _authType,
|
'stream-auth-type': _authType,
|
||||||
'x-stream-client': _userAgent,
|
'X-Stream-Client': _userAgent,
|
||||||
'Content-Encoding': 'gzip',
|
'Content-Encoding': 'gzip',
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -468,9 +468,9 @@ class StreamChatClient {
|
|||||||
user: state.user,
|
user: state.user,
|
||||||
connectParams: {
|
connectParams: {
|
||||||
'api_key': apiKey,
|
'api_key': apiKey,
|
||||||
'authorization': token,
|
'Authorization': token,
|
||||||
'stream-auth-type': _authType,
|
'stream-auth-type': _authType,
|
||||||
'x-stream-client': _userAgent,
|
'X-Stream-Client': _userAgent,
|
||||||
},
|
},
|
||||||
connectPayload: {
|
connectPayload: {
|
||||||
'user_id': state.user.id,
|
'user_id': state.user.id,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import 'package:stream_chat/src/client.dart';
|
import 'package:stream_chat/src/client.dart';
|
||||||
|
|
||||||
/// Current package version
|
/// Current package version
|
||||||
/// Used in [StreamChatClient] to build the `x-stream-client` header
|
/// Used in [StreamChatClient] to build the `X-Stream-Client` header
|
||||||
const PACKAGE_VERSION = '1.3.1-beta';
|
const PACKAGE_VERSION = '1.3.1-beta';
|
||||||
|
|||||||
Reference in New Issue
Block a user