|
|
@ -32,14 +32,13 @@ class WebDavClient { |
|
|
|
|
|
|
|
|
|
|
|
final request = await rootClient.httpClient.openUrl(method, url) |
|
|
|
final request = await rootClient.httpClient.openUrl(method, url) |
|
|
|
..persistentConnection = true; |
|
|
|
..persistentConnection = true; |
|
|
|
for (final header in { |
|
|
|
|
|
|
|
|
|
|
|
request.headers.addAll({ |
|
|
|
HttpHeaders.contentTypeHeader: 'application/xml', |
|
|
|
HttpHeaders.contentTypeHeader: 'application/xml', |
|
|
|
...?rootClient.baseHeaders, |
|
|
|
...?rootClient.baseHeaders, |
|
|
|
...?headers, |
|
|
|
...?headers, |
|
|
|
...?rootClient.authentications.firstOrNull?.headers, |
|
|
|
...?rootClient.authentications.firstOrNull?.headers, |
|
|
|
}.entries) { |
|
|
|
}); |
|
|
|
request.headers.add(header.key, header.value); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (data != null) { |
|
|
|
if (data != null) { |
|
|
|
request.add(data); |
|
|
|
request.add(data); |
|
|
|