diff --git a/README.md b/README.md index e41c5d2..b4d552e 100644 --- a/README.md +++ b/README.md @@ -480,9 +480,9 @@ repositories { ``` dependencies { - runtime(group: 'synapticloop', name: 'backblaze-b2-java-api', version: '2.1.2', ext: 'jar') + runtime(group: 'synapticloop', name: 'backblaze-b2-java-api', version: '2.1.3', ext: 'jar') - compile(group: 'synapticloop', name: 'backblaze-b2-java-api', version: '2.1.2', ext: 'jar') + compile(group: 'synapticloop', name: 'backblaze-b2-java-api', version: '2.1.3', ext: 'jar') } ``` @@ -494,9 +494,9 @@ or, more simply for versions of gradle greater than 2.1 ``` dependencies { - runtime 'synapticloop:backblaze-b2-java-api:2.1.2' + runtime 'synapticloop:backblaze-b2-java-api:2.1.3' - compile 'synapticloop:backblaze-b2-java-api:2.1.2' + compile 'synapticloop:backblaze-b2-java-api:2.1.3' } ``` @@ -514,7 +514,7 @@ dependencies { synapticloop backblaze-b2-java-api - 2.1.2 + 2.1.3 jar ``` diff --git a/build.gradle b/build.gradle index 5ca72b0..d717225 100644 --- a/build.gradle +++ b/build.gradle @@ -14,7 +14,7 @@ group = 'synapticloop' archivesBaseName = 'backblaze-b2-java-api' description = """A java api for the truly excellent backblaze b2 storage service""" -version = '2.1.2' +version = '2.1.3' sourceCompatibility = 1.7 targetCompatibility = 1.7 diff --git a/src/main/java/synapticloop/b2/request/BaseB2Request.java b/src/main/java/synapticloop/b2/request/BaseB2Request.java index 6b6eaa5..085d268 100644 --- a/src/main/java/synapticloop/b2/request/BaseB2Request.java +++ b/src/main/java/synapticloop/b2/request/BaseB2Request.java @@ -323,10 +323,14 @@ protected void setHeaders(HttpUriRequest request) throws B2ApiException { for (String headerKey : requestHeaders.keySet()) { if(!request.containsHeader(headerKey)) { final String headerValue = requestHeaders.get(headerKey); - LOGGER.trace("Setting header '" + headerKey + "' to '" + headerValue + "'."); + if(!HttpHeaders.AUTHORIZATION.equalsIgnoreCase(headerKey)) { + LOGGER.trace("Setting header '" + headerKey + "' to '" + headerValue + "'."); + } else { + LOGGER.trace("Setting header '" + headerKey + "' to '[redacted]'."); + } request.setHeader(headerKey, headerValue); } else { - LOGGER.warn("Ignore duplicate header " + headerKey); + LOGGER.warn("Ignored duplicate header " + headerKey); } } }