mirror of
https://github.com/appwrite/sdk-for-flutter.git
synced 2026-06-06 19:37:52 +00:00
fix user agent string
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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',
|
||||
};
|
||||
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user