Skip to content

Commit

Permalink
Merge pull request #206 from mziccard/put-resumable-upload
Browse files Browse the repository at this point in the history
Make resumable upload request use PUT instead of POST
  • Loading branch information
aozarov committed Oct 2, 2015
2 parents cfc09e4 + 0ba6652 commit c7bbc65
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 c7bbc65

Please sign in to comment.