fix user agent string

This commit is contained in:
Torsten Dittmann
2021-09-22 15:02:48 +02:00
parent 279e2f9fba
commit 5ac0d5a959
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
```yml
dependencies:
appwrite: ^1.0.3
appwrite: ^1.0.4
```
You can install packages from the command line:
+1 -1
View File
@@ -33,7 +33,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
.replaceFirst('http://', 'ws://');
_headers = {
'content-type': 'application/json',
'x-sdk-version': 'appwrite:flutter:1.0.3',
'x-sdk-version': 'appwrite:flutter:1.0.4',
'X-Appwrite-Response-Format' : '0.10.0',
};
+2 -2
View File
@@ -52,7 +52,7 @@ class ClientIO extends ClientBase with ClientMixin {
.replaceFirst('http://', 'ws://');
this._headers = {
'content-type': 'application/json',
'x-sdk-version': 'appwrite:flutter:1.0.3',
'x-sdk-version': 'appwrite:flutter:1.0.4',
'X-Appwrite-Response-Format' : '0.10.0',
};
@@ -152,7 +152,7 @@ class ClientIO extends ClientBase with ClientMixin {
device = '(Macintosh; ${macinfo.model})';
}
addHeader(
'user-agent', '${packageInfo.appName}/${packageInfo.version} $device');
'user-agent', '${packageInfo.packageName}/${packageInfo.version} $device');
_initialized = true;
}
+2 -2
View File
@@ -1,5 +1,5 @@
name: appwrite
version: 1.0.3
version: 1.0.4
description: Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API
homepage: https://appwrite.io
repository: https://github.com/appwrite/sdk-for-flutter
@@ -12,7 +12,7 @@ dependencies:
sdk: flutter
cookie_jar: ^3.0.1
device_info_plus: ^2.1.0
flutter_web_auth: ^0.3.0
flutter_web_auth: ^0.3.1
http: ^0.13.3
package_info_plus: ^1.0.4
path_provider: ^2.0.2