Skip to content

Commit

Permalink
trailing / messes up signing of request
Browse files Browse the repository at this point in the history
  • Loading branch information
rw2 committed Nov 19, 2024
1 parent 6aa4eb9 commit b915de8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/S3Commands.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ bool AmazonRequest::parseURL(const std::string &url, std::string &bucket_path,
path = "/" + object;
bucket_path = "/" + object.substr(0, object.find('/'));
} else {
path = "/" + bucket;
path = "/" + bucket + "/" + object;
bucket_path = "/" + bucket;
}
} else {
Expand Down Expand Up @@ -565,6 +565,7 @@ bool AmazonS3List::SendRequest(const std::string &continuationToken) {

// Operation is on the bucket itself; alter the URL to remove the object
hostUrl = getProtocol() + "://" + host + bucketPath;
canonicalURI = bucketPath;

return SendS3Request("");
}
Expand Down

0 comments on commit b915de8

Please sign in to comment.