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 => {
'Authorization': token,
'stream-auth-type': _authType,
'x-stream-client': _userAgent,
'X-Stream-Client': _userAgent,
'Content-Encoding': 'gzip',
};
@@ -468,9 +468,9 @@ class StreamChatClient {
user: state.user,
connectParams: {
'api_key': apiKey,
'authorization': token,
'Authorization': token,
'stream-auth-type': _authType,
'x-stream-client': _userAgent,
'X-Stream-Client': _userAgent,
},
connectPayload: {
'user_id': state.user.id,