Skip to content

Commit

Permalink
Make resumable upload request use PUT instead of POST
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Oct 2, 2015
1 parent cfc09e4 commit 0ba6652
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ public void write(String uploadId, byte[] toWrite, int toWriteOffset, StorageObj
long destOffset, int length, boolean last) throws StorageException {
try {
GenericUrl url = new GenericUrl(uploadId);
HttpRequest httpRequest = storage.getRequestFactory().buildPostRequest(url,
HttpRequest httpRequest = storage.getRequestFactory().buildPutRequest(url,
new ByteArrayContent(null, toWrite, toWriteOffset, length));
long limit = destOffset + length;
StringBuilder range = new StringBuilder("bytes ");
Expand Down

0 comments on commit 0ba6652

Please sign in to comment.