boto/boto — pull request #746 by tpodowd (2012-05-11 09:36:39+00:00)
Title: Add version_id support to generate_url and fix headers/response_headers.

- support version_id in the key or as passed from generate_url params
- Don't add non-provider headers to the generated url (see below)
- Fixed missing url encoding before passing to sig generation so that
it can correctly decode the params. This is similar to pull request #646
which can now also be closed.
- Fixed the headers dictionary polution with response-headers that was
happening as part of calling the generate_url function.
- Added small unit test as provided by pull request #646 also.

I also confirmed that everything still works for the PUT case described
in the following url. Note though that, the url no longer contains the
Content-Length nor is it required at all as it's not part of the signature
calculation anyway. I confirmed also that adding other headers such as
--header "Content-Type: text/plain" to curl work when you specify same
header what you pass to generate_url via headers dict.

http://stackoverflow.com/questions/10044151/how-to-generate-a-temporary-url-to-upload-file-to-amazon-s3-with-boto-library

Both s3 and gs unit tests pass.