Browse Source

nextcloud: Actually expose the CookieJar

pull/131/head
jld3103 2 years ago
parent
commit
879a277dfc
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 1
      packages/nextcloud/lib/src/client.dart
  2. 2
      packages/nextcloud/test/helper.dart

1
packages/nextcloud/lib/src/client.dart

@ -10,6 +10,7 @@ class NextcloudClient extends Client {
final String? language,
final AppType appType = AppType.unknown,
final String? userAgentOverride,
super.cookieJar,
}) : super(
baseHeaders: (<String, String?>{
'OCS-APIRequest': 'true',

2
packages/nextcloud/test/helper.dart

@ -91,6 +91,7 @@ class TestNextcloudClient extends NextcloudClient {
super.language,
super.appType,
super.userAgentOverride,
super.cookieJar,
});
}
@ -138,6 +139,7 @@ Future<TestNextcloudClient> getTestClient(
password: clientPassword,
appType: appType,
userAgentOverride: userAgentOverride,
cookieJar: CookieJar(),
);
while (true) {

Loading…
Cancel
Save