mirror of
https://github.com/etesync/android
synced 2024-11-22 16:08:13 +00:00
disable strict parsing of XML response for PROPFIND and multiget
This commit is contained in:
parent
7ab740d443
commit
b9a13bf7de
@ -70,7 +70,7 @@ public class WebDavCollection extends WebDavResource {
|
|||||||
Serializer serializer = new Persister();
|
Serializer serializer = new Persister();
|
||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
InputStream is = new TeeInputStream(response.getEntity().getContent(), baos);
|
InputStream is = new TeeInputStream(response.getEntity().getContent(), baos);
|
||||||
multistatus = serializer.read(DavMultistatus.class, is);
|
multistatus = serializer.read(DavMultistatus.class, is, false);
|
||||||
|
|
||||||
Log.d(TAG, "Received multistatus response: " + baos.toString("UTF-8"));
|
Log.d(TAG, "Received multistatus response: " + baos.toString("UTF-8"));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
@ -117,7 +117,7 @@ public class WebDavCollection extends WebDavResource {
|
|||||||
try {
|
try {
|
||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
InputStream is = new TeeInputStream(response.getEntity().getContent(), baos);
|
InputStream is = new TeeInputStream(response.getEntity().getContent(), baos);
|
||||||
multistatus = serializer.read(DavMultistatus.class, is);
|
multistatus = serializer.read(DavMultistatus.class, is, false);
|
||||||
|
|
||||||
Log.d(TAG, "Received multistatus response: " + baos.toString("UTF-8"));
|
Log.d(TAG, "Received multistatus response: " + baos.toString("UTF-8"));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user