diff --git a/src/main/java/net/snowflake/client/jdbc/SnowflakeUtil.java b/src/main/java/net/snowflake/client/jdbc/SnowflakeUtil.java index b199f7626..627366163 100644 --- a/src/main/java/net/snowflake/client/jdbc/SnowflakeUtil.java +++ b/src/main/java/net/snowflake/client/jdbc/SnowflakeUtil.java @@ -611,10 +611,11 @@ public static HttpClientSettingsKey convertProxyPropertiesToHttpClientKey( String nonProxyHosts = info.getProperty(SFSessionProperty.NON_PROXY_HOSTS.getPropertyKey()); String proxyProtocol = info.getProperty(SFSessionProperty.PROXY_PROTOCOL.getPropertyKey()); Boolean gzipDisabled = - (info.getProperty(SFSessionProperty.GZIP_DISABLED.getPropertyKey()).isEmpty() + (!info.containsKey(SFSessionProperty.GZIP_DISABLED.getPropertyKey()) + || info.getProperty(SFSessionProperty.GZIP_DISABLED.getPropertyKey()).isEmpty()) ? false : Boolean.valueOf( - info.getProperty(SFSessionProperty.GZIP_DISABLED.getPropertyKey()))); + info.getProperty(SFSessionProperty.GZIP_DISABLED.getPropertyKey())); // Check for any user agent suffix String userAgentSuffix = ""; if (info.containsKey(SFSessionProperty.USER_AGENT_SUFFIX)) {