Skip to content

Commit

Permalink
fix user agent string
Browse files Browse the repository at this point in the history
  • Loading branch information
TorstenDittmann committed Sep 22, 2021
1 parent 279e2f9 commit 5ac0d5a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion lib/src/client_browser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

Expand Down
4 changes: 2 additions & 2 deletions lib/src/client_io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

Expand Down Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5ac0d5a

Please sign in to comment.