fix: header casing

This commit is contained in:
Salvatore Giordano
2021-03-02 09:43:04 +01:00
parent 3a51e4786e
commit 4a40743857
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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 -1
View File
@@ -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';