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 String? language,
final AppType appType = AppType.unknown, final AppType appType = AppType.unknown,
final String? userAgentOverride, final String? userAgentOverride,
super.cookieJar,
}) : super( }) : super(
baseHeaders: (<String, String?>{ baseHeaders: (<String, String?>{
'OCS-APIRequest': 'true', 'OCS-APIRequest': 'true',

2
packages/nextcloud/test/helper.dart

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

Loading…
Cancel
Save