boto/boto — pull request #385 by marcacohen (2011-11-03 19:53:25+00:00)
Title: In provider.py, STORAGE_CLASS_HEADER_KEY gets set to None, which is

propagated to self.storage_class_header. In s3/bucket.py, the copy_key()
method uses that attribute without making sure it's not None, which leads
to downstream problems when the request is sent to httplib. The simple fix
is to check for non-null value before using provider.storage_class_header
as a dictionary key. It might be worthwhile, at some point in the future,
to store the headers in a dictionary instead of a discrete set of named
class attributes, because the former would lend itself to programmatically
avoiding null values, instead of having to add a bunch of if statements
throughout the code.