Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix for Python2.5/httplib and hmac-v3-http signing issue. #720

Merged
merged 1 commit into from Apr 30, 2012
Jump to file or symbol
Failed to load files and symbols.
+2 −0
Split
View
@@ -122,6 +122,7 @@ def make_request(self, action, body='', object_hook=None):
"""
headers = {'X-Amz-Target': '%s_%s.%s' % (self.ServiceName,
self.Version, action),
+ 'Host': self.region.endpoint,
'Content-Type': 'application/x-amz-json-1.0',
'Content-Length': str(len(body))}
http_request = self.build_base_http_request('POST', '/', '/',
View
@@ -92,6 +92,7 @@ def make_request(self, action, body='', object_hook=None):
:raises: ``SWFResponseError`` if response status is not 200.
"""
headers = {'X-Amz-Target': '%s.%s' % (self.ServiceName, action),
+ 'Host': self.region.endpoint,
'Content-Type': 'application/json; charset=UTF-8',
'Content-Encoding': 'amz-1.0',
'Content-Length': str(len(body))}