From 5ac0d5a959cdee7543a1e54be028ca999d12fea6 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 22 Sep 2021 15:02:48 +0200 Subject: [PATCH] fix user agent string --- README.md | 2 +- lib/src/client_browser.dart | 2 +- lib/src/client_io.dart | 4 ++-- pubspec.yaml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e306db2..60799e5 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/lib/src/client_browser.dart b/lib/src/client_browser.dart index 3191fae..05badbc 100644 --- a/lib/src/client_browser.dart +++ b/lib/src/client_browser.dart @@ -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', }; diff --git a/lib/src/client_io.dart b/lib/src/client_io.dart index 6a8d10d..d1f7a3d 100644 --- a/lib/src/client_io.dart +++ b/lib/src/client_io.dart @@ -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; } diff --git a/pubspec.yaml b/pubspec.yaml index d09e930..e5b38ef 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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