Subject: | Wrong value of parameter path of HEAD request in _send_request_expect_nothing_probed subroutine of S3.pm |
I use add_key_filename (PUT request) of Net::Amazon::S3::Bucket to
upload file. The file can be upload to S3 bucket. But Amazon told us
some people's bucket got HEAD request for the same key. I trace the
function call, found the HEAD request will be sent before the PUT
request. But the HEAD request extracts URI from PUT request as value of
parameter path to construct new HTTP request. Other requests will add
bucket at the beginning of the key as the value of parameter path.