|
|
@ -16,9 +16,9 @@ class NextcloudClient extends Client { |
|
|
|
'OCS-APIRequest': 'true', |
|
|
|
'OCS-APIRequest': 'true', |
|
|
|
'Accept': 'application/json', |
|
|
|
'Accept': 'application/json', |
|
|
|
'Accept-Language': language, |
|
|
|
'Accept-Language': language, |
|
|
|
'User-Agent': userAgentOverride ?? appType.userAgent, |
|
|
|
|
|
|
|
}..removeWhere((final _, final value) => value == null)) |
|
|
|
}..removeWhere((final _, final value) => value == null)) |
|
|
|
.cast<String, String>(), |
|
|
|
.cast<String, String>(), |
|
|
|
|
|
|
|
userAgent: userAgentOverride ?? appType.userAgent, |
|
|
|
authentication: username != null && password != null |
|
|
|
authentication: username != null && password != null |
|
|
|
? HttpBasicAuthentication( |
|
|
|
? HttpBasicAuthentication( |
|
|
|
username: username, |
|
|
|
username: username, |
|
|
|