EWS: fix davmail.acceptEncodingGzip setting handling

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1979 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2012-07-17 06:49:36 +00:00
parent ab536ded32
commit 5c337081b8
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ public abstract class EWSMethod extends PostMethod {
this.methodName = methodName;
this.responseCollectionName = responseCollectionName;
if (Settings.getBooleanProperty("davmail.acceptEncodingGzip", true) &&
!Level.DEBUG.toString().equals(Settings.getBooleanProperty("log4j.logger.httpclient.wire"))) {
!Level.DEBUG.toString().equals(Settings.getProperty("log4j.logger.httpclient.wire"))) {
setRequestHeader("Accept-Encoding", "gzip");
}
setRequestEntity(new RequestEntity() {