mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 19:22:22 -05:00
Caldav: fix noneMatch handling over WebDav
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1742 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
92dabe10f2
commit
0a32a5ba9e
@ -1544,12 +1544,8 @@ public class DavExchangeSession extends ExchangeSession {
|
||||
propPatchMethod.setRequestHeader("If-None-Match", noneMatch);
|
||||
}
|
||||
try {
|
||||
httpClient.executeMethod(propPatchMethod);
|
||||
} finally {
|
||||
propPatchMethod.releaseConnection();
|
||||
}
|
||||
int status = httpClient.executeMethod(propPatchMethod);
|
||||
|
||||
int status = DavGatewayHttpClientFacade.executeHttpMethod(httpClient, propPatchMethod);
|
||||
if (status == HttpStatus.SC_MULTI_STATUS) {
|
||||
Item newItem = getItem(folderPath, itemName);
|
||||
itemResult.status = propPatchMethod.getResponseStatusCode();
|
||||
@ -1557,6 +1553,9 @@ public class DavExchangeSession extends ExchangeSession {
|
||||
} else {
|
||||
itemResult.status = status;
|
||||
}
|
||||
} finally {
|
||||
propPatchMethod.releaseConnection();
|
||||
}
|
||||
|
||||
} else {
|
||||
String encodedHref = URIUtil.encodePath(getHref());
|
||||
|
Loading…
Reference in New Issue
Block a user