diff --git a/src/main/java/synapticloop/b2/response/B2DownloadFileResponse.java b/src/main/java/synapticloop/b2/response/B2DownloadFileResponse.java index 889f86f..ac59053 100644 --- a/src/main/java/synapticloop/b2/response/B2DownloadFileResponse.java +++ b/src/main/java/synapticloop/b2/response/B2DownloadFileResponse.java @@ -71,6 +71,8 @@ private void parseHeaders(CloseableHttpResponse closeableHttpResponse) throws B2 for (Header header : allHeaders) { String headerName = header.getName(); String headerValue = header.getValue(); + // we need to lowercase the headers, as they do not match the normal + // camel-case of the input headers if(headerLookup.containsKey(headerName.toLowerCase())) { switch (headerLookup.get(headerName.toLowerCase())) { case HEADER_CONTENT_LENGTH: