> + } else if (path.startsWith("/b2api/v1/b2_upload_part")) {
> + String fileId = path.split("/")[4];
> + GetUploadPartResponse uploadUrl =
> api.getMultipartApi().getUploadPartUrl(fileId);
> + builder.endpoint(uploadUrl.uploadUrl())
> + .replaceHeader(HttpHeaders.AUTHORIZATION,
> uploadUrl.authorizationToken());
> + }
> +
> + return builder.build();
> + }
> +
> + @Override
> + public boolean shouldRetryRequest(HttpCommand command, HttpResponse
> response) {
> + boolean retry = false;
> + try {
> + byte[] data = closeClientButKeepContentStream(response);
> + String message = data != null ? new String(data) : null;
Message seems to be unused. Remove this line?
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/289/files/ab79bb9fec33595f5f61ca84d2acccd01299e8cf#r67957525