|
|
@ -27,10 +27,7 @@ class NextcloudClient extends DynamiteClient { |
|
|
|
final String? userAgentOverride, |
|
|
|
final String? userAgentOverride, |
|
|
|
super.cookieJar, |
|
|
|
super.cookieJar, |
|
|
|
}) : super( |
|
|
|
}) : super( |
|
|
|
baseHeaders: (<String, String?>{ |
|
|
|
baseHeaders: language != null ? {'Accept-Language': language} : null, |
|
|
|
'Accept-Language': language, |
|
|
|
|
|
|
|
}..removeWhere((final _, final value) => value == null)) |
|
|
|
|
|
|
|
.cast<String, String>(), |
|
|
|
|
|
|
|
userAgent: userAgentOverride ?? appType.userAgent, |
|
|
|
userAgent: userAgentOverride ?? appType.userAgent, |
|
|
|
authentications: [ |
|
|
|
authentications: [ |
|
|
|
if (appPassword != null) ...[ |
|
|
|
if (appPassword != null) ...[ |
|
|
|