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

Commit 428846d

Browse files
SynapticloopSynapticloop
authored andcommitted
added documentation
1 parent 6cf5081 commit 428846d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/synapticloop/b2/response/B2DownloadFileResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ private void parseHeaders(CloseableHttpResponse closeableHttpResponse) throws B2
7171
for (Header header : allHeaders) {
7272
String headerName = header.getName();
7373
String headerValue = header.getValue();
74+
// we need to lowercase the headers, as they do not match the normal
75+
// camel-case of the input headers
7476
if(headerLookup.containsKey(headerName.toLowerCase())) {
7577
switch (headerLookup.get(headerName.toLowerCase())) {
7678
case HEADER_CONTENT_LENGTH:

0 commit comments

Comments
 (0)