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

Commit 09f20eb

Browse files
author
synapticloop
committed
removed information leakage
1 parent 3fa604b commit 09f20eb

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -480,9 +480,9 @@ repositories {
480480

481481
```
482482
dependencies {
483-
runtime(group: 'synapticloop', name: 'backblaze-b2-java-api', version: '2.1.2', ext: 'jar')
483+
runtime(group: 'synapticloop', name: 'backblaze-b2-java-api', version: '2.1.3', ext: 'jar')
484484
485-
compile(group: 'synapticloop', name: 'backblaze-b2-java-api', version: '2.1.2', ext: 'jar')
485+
compile(group: 'synapticloop', name: 'backblaze-b2-java-api', version: '2.1.3', ext: 'jar')
486486
}
487487
```
488488

@@ -494,9 +494,9 @@ or, more simply for versions of gradle greater than 2.1
494494

495495
```
496496
dependencies {
497-
runtime 'synapticloop:backblaze-b2-java-api:2.1.2'
497+
runtime 'synapticloop:backblaze-b2-java-api:2.1.3'
498498
499-
compile 'synapticloop:backblaze-b2-java-api:2.1.2'
499+
compile 'synapticloop:backblaze-b2-java-api:2.1.3'
500500
}
501501
```
502502

@@ -514,7 +514,7 @@ dependencies {
514514
<dependency>
515515
<groupId>synapticloop</groupId>
516516
<artifactId>backblaze-b2-java-api</artifactId>
517-
<version>2.1.2</version>
517+
<version>2.1.3</version>
518518
<type>jar</type>
519519
</dependency>
520520
```

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ group = 'synapticloop'
1414
archivesBaseName = 'backblaze-b2-java-api'
1515
description = """A java api for the truly excellent backblaze b2 storage service"""
1616

17-
version = '2.1.2'
17+
version = '2.1.3'
1818

1919
sourceCompatibility = 1.7
2020
targetCompatibility = 1.7

src/main/java/synapticloop/b2/request/BaseB2Request.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,10 +323,14 @@ protected void setHeaders(HttpUriRequest request) throws B2ApiException {
323323
for (String headerKey : requestHeaders.keySet()) {
324324
if(!request.containsHeader(headerKey)) {
325325
final String headerValue = requestHeaders.get(headerKey);
326-
LOGGER.trace("Setting header '" + headerKey + "' to '" + headerValue + "'.");
326+
if(!HttpHeaders.AUTHORIZATION.equalsIgnoreCase(headerKey)) {
327+
LOGGER.trace("Setting header '" + headerKey + "' to '" + headerValue + "'.");
328+
} else {
329+
LOGGER.trace("Setting header '" + headerKey + "' to '[redacted]'.");
330+
}
327331
request.setHeader(headerKey, headerValue);
328332
} else {
329-
LOGGER.warn("Ignore duplicate header " + headerKey);
333+
LOGGER.warn("Ignored duplicate header " + headerKey);
330334
}
331335
}
332336
}

0 commit comments

Comments
 (0)