From 5c337081b8fb7f4e6e5d006600cdccde7b394072 Mon Sep 17 00:00:00 2001 From: mguessan Date: Tue, 17 Jul 2012 06:49:36 +0000 Subject: [PATCH] EWS: fix davmail.acceptEncodingGzip setting handling git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1979 3d1905a2-6b24-0410-a738-b14d5a86fcbd --- src/java/davmail/exchange/ews/EWSMethod.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/davmail/exchange/ews/EWSMethod.java b/src/java/davmail/exchange/ews/EWSMethod.java index 914853ad..43b59d53 100644 --- a/src/java/davmail/exchange/ews/EWSMethod.java +++ b/src/java/davmail/exchange/ews/EWSMethod.java @@ -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() {