|
@@ -890,9 +890,10 @@ class Key(object):
|
|
|
else:
|
|
else:
|
|
|
headers = headers.copy()
|
|
headers = headers.copy()
|
|
|
# Overwrite user-supplied user-agent.
|
|
# Overwrite user-supplied user-agent.
|
|
|
- for header in find_matching_headers('User-Agent', headers):
|
|
|
|
|
- del headers[header]
|
|
|
|
|
- headers['User-Agent'] = UserAgent
|
|
|
|
|
|
|
+ #for header in find_matching_headers('User-Agent', headers):
|
|
|
|
|
+ # del headers[header]
|
|
|
|
|
+ if not headers.get('User-Agent'):
|
|
|
|
|
+ headers['User-Agent'] = UserAgent
|
|
|
# If storage_class is None, then a user has not explicitly requested
|
|
# If storage_class is None, then a user has not explicitly requested
|
|
|
# a storage class, so we can assume STANDARD here
|
|
# a storage class, so we can assume STANDARD here
|
|
|
if self._storage_class not in [None, 'STANDARD']:
|
|
if self._storage_class not in [None, 'STANDARD']:
|