diff --git a/aiobotocore/endpoint.py b/aiobotocore/endpoint.py index 1148cc8c..ee5adda2 100644 --- a/aiobotocore/endpoint.py +++ b/aiobotocore/endpoint.py @@ -86,8 +86,16 @@ def _request(self, method, url, headers, data): @asyncio.coroutine def _send_request(self, request_dict, operation_model): - # TODO: fix this - request_dict['headers']['CONTENT-TYPE'] = 'application/octet-stream' + + # install content-type header if not provided + headers = request_dict['headers'] + for key in headers.keys(): + if key.lower().startswith('content-type'): + break + else: + request_dict['headers']['Content-Type'] = \ + 'application/octet-stream' + attempts = 1 request = self.create_request(request_dict, operation_model) success_response, exception = yield from self._get_response(