mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
EWS: revert 3317867 XML1.1 header workaround to fix 3385308
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1752 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
4b8f2ae0ae
commit
be8d0714b3
@ -1015,10 +1015,6 @@ public abstract class EWSMethod extends PostMethod {
|
||||
@Override
|
||||
public int read(byte[] buffer, int offset, int length) throws IOException {
|
||||
int count = super.read(buffer, offset, length);
|
||||
// workaround for Exchange bug: replace xml 1.0 header with xml 1.1
|
||||
if (totalCount == 0 && count > 18 && buffer[17] == '0') {
|
||||
buffer[17] = '1';
|
||||
}
|
||||
totalCount += count;
|
||||
if (totalCount - lastLogCount > 1024 * 128) {
|
||||
DavGatewayTray.debug(new BundleMessage("LOG_DOWNLOAD_PROGRESS", String.valueOf(totalCount / 1024), EWSMethod.this.getURI()));
|
||||
|
Loading…
Reference in New Issue
Block a user