Backblaze / b2-sdk-java

The official Java SDK for using Backblaze's B2 Storage APIs
Other
93 stars 26 forks source link

Disable URI normalization in Apache HttpClient #106

Closed malaysf closed 4 years ago

malaysf commented 4 years ago

By default, HttpClient will normalize URIs, which includes replacing double slashes (//) with a single slash. This will alter the request URI and implicitly change the name of files requested through the DownloadByName API where the filename is part of the URI. We need to disable this normalization to allow filename requests to go through as-is.

Updating the HttpClient version to 4.5.9 which is the first version that the setNormalizeUri option became available.