Skip to content

Commit 77c24fd

Browse files
author
Cristian Cotes
committed
Fixed: not entity in shared upload and download functions.
1 parent ea6843d commit 77c24fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/rackspacecloud/client/cloudfiles/FilesClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2506,7 +2506,7 @@ public String storeSharedObjectAs(String sharedStorageURL, String container,
25062506
if (useETag) {
25072507
method.setHeader(FilesConstants.E_TAG, md5Sum(obj));
25082508
}
2509-
//method.setEntity(new RequestEntityWrapper(new FileEntity(obj, contentType), callback));
2509+
method.setEntity(new RequestEntityWrapper(new FileEntity(obj, contentType), null));
25102510
FilesResponse response = new FilesResponse(client.execute(method));
25112511

25122512
if (response.getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {
@@ -2520,7 +2520,7 @@ public String storeSharedObjectAs(String sharedStorageURL, String container,
25202520
if (useETag) {
25212521
method.setHeader(FilesConstants.E_TAG, md5Sum(obj));
25222522
}
2523-
//method.setEntity(new RequestEntityWrapper(new FileEntity(obj, contentType), callback));
2523+
method.setEntity(new RequestEntityWrapper(new FileEntity(obj, contentType), null));
25242524
response = new FilesResponse(client.execute(method));
25252525
} else {
25262526
throw new FilesAuthorizationException("Re-login failed", response.getResponseHeaders(), response.getStatusLine());

0 commit comments

Comments
 (0)