File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ class DefaultHostProviderV2 extends HostFreezer {
215
215
() async => BucketRegionsQuery .create (
216
216
bucketHosts: _bucketHosts,
217
217
useHttps: _useHttps,
218
- persistentFilePath: platform.js // web端不要持久化到磁盘,内部自动使用内存缓存即可
218
+ persistentFilePath: platform.isWeb // web端不要持久化到磁盘,内部自动使用内存缓存即可
219
219
? null
220
220
: join (
221
221
Directory .systemTemp.path,
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ part 'request_task_controller.dart';
9
9
part 'request_task_manager.dart' ;
10
10
11
11
String _getDefaultUserAgent () {
12
- return platform.js
13
- ? 'QiniuDart/v$currentVersion (Web)'
12
+ return platform.isWeb
13
+ ? 'QiniuDart/v$currentVersion (Web; )'
14
14
: 'QiniuDart/v$currentVersion (${SysInfo .kernelName } ${SysInfo .kernelVersion } ${SysInfo .kernelArchitecture }; ${SysInfo .operatingSystemName } ${SysInfo .operatingSystemVersion };)' ;
15
15
}
16
16
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ dependencies:
19
19
convert : ^3.1.1
20
20
cache_provider : ^1.0.1
21
21
singleflight : ^1.0.2
22
- platform_info : ^5 .0.0
22
+ platform_info : ^4 .0.0
23
23
24
24
dev_dependencies :
25
25
test : any
You can’t perform that action at this time.
0 commit comments