Skip to content

Commit

Permalink
Change DefaultStorageRpc to noop sometimes.
Browse files Browse the repository at this point in the history
Specifically for !last 0-length writes.
  • Loading branch information
jean-philippe-martin committed Mar 7, 2016
1 parent 7af5787 commit 7a854b2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,10 @@ public void write(String uploadId, byte[] toWrite, int toWriteOffset, long destO
range.append('*');
}
httpRequest.getHeaders().setContentRange(range.toString());
} else {
if (!last) {
return;
}
}
int code;
String message;
Expand Down

0 comments on commit 7a854b2

Please sign in to comment.