Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
removed information leakage
Browse files Browse the repository at this point in the history
  • Loading branch information
synapticloop committed Dec 4, 2016
1 parent 3fa604b commit 09f20eb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
```

Expand All @@ -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'
}
```

Expand All @@ -514,7 +514,7 @@ dependencies {
<dependency>
<groupId>synapticloop</groupId>
<artifactId>backblaze-b2-java-api</artifactId>
<version>2.1.2</version>
<version>2.1.3</version>
<type>jar</type>
</dependency>
```
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions src/main/java/synapticloop/b2/request/BaseB2Request.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 09f20eb

Please sign in to comment.