Skip to content

Commit

Permalink
Fix StorageImpl.signUrl with object names starting with /
Browse files Browse the repository at this point in the history
  • Loading branch information
Clément Denis committed May 10, 2016
1 parent c339bf8 commit 1d919b4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ public URL signUrl(BlobInfo blobInfo, long duration, TimeUnit unit, SignUrlOptio
path.append('/');
}
if (blobInfo.name().startsWith("/")) {
path.setLength(stBuilder.length() - 1);
path.setLength(path.length() - 1);
}
path.append(blobInfo.name());
stBuilder.append(path);
Expand Down

0 comments on commit 1d919b4

Please sign in to comment.