Skip to content

Commit 5ac0d5a

Browse files
fix user agent string
1 parent 279e2f9 commit 5ac0d5a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Add this to your package's `pubspec.yaml` file:
2121

2222
```yml
2323
dependencies:
24-
appwrite: ^1.0.3
24+
appwrite: ^1.0.4
2525
```
2626
2727
You can install packages from the command line:

lib/src/client_browser.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ClientBrowser extends ClientBase with ClientMixin {
3333
.replaceFirst('http://', 'ws://');
3434
_headers = {
3535
'content-type': 'application/json',
36-
'x-sdk-version': 'appwrite:flutter:1.0.3',
36+
'x-sdk-version': 'appwrite:flutter:1.0.4',
3737
'X-Appwrite-Response-Format' : '0.10.0',
3838
};
3939

lib/src/client_io.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class ClientIO extends ClientBase with ClientMixin {
5252
.replaceFirst('http://', 'ws://');
5353
this._headers = {
5454
'content-type': 'application/json',
55-
'x-sdk-version': 'appwrite:flutter:1.0.3',
55+
'x-sdk-version': 'appwrite:flutter:1.0.4',
5656
'X-Appwrite-Response-Format' : '0.10.0',
5757
};
5858

@@ -152,7 +152,7 @@ class ClientIO extends ClientBase with ClientMixin {
152152
device = '(Macintosh; ${macinfo.model})';
153153
}
154154
addHeader(
155-
'user-agent', '${packageInfo.appName}/${packageInfo.version} $device');
155+
'user-agent', '${packageInfo.packageName}/${packageInfo.version} $device');
156156

157157
_initialized = true;
158158
}

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: appwrite
2-
version: 1.0.3
2+
version: 1.0.4
33
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
44
homepage: https://appwrite.io
55
repository: https://github.com/appwrite/sdk-for-flutter
@@ -12,7 +12,7 @@ dependencies:
1212
sdk: flutter
1313
cookie_jar: ^3.0.1
1414
device_info_plus: ^2.1.0
15-
flutter_web_auth: ^0.3.0
15+
flutter_web_auth: ^0.3.1
1616
http: ^0.13.3
1717
package_info_plus: ^1.0.4
1818
path_provider: ^2.0.2

0 commit comments

Comments
 (0)