Fixed host not present in headers for S3 requests.

This commit is contained in:
acsbendi 2019-07-24 21:29:00 +02:00
parent d428acdb7c
commit 45a380a807

View File

@ -189,6 +189,8 @@ class ResponseObject(_TemplateEnvironmentMixin, ActionAuthenticatorMixin):
self.method = request.method
self.path = self._get_path(request)
self.headers = request.headers
if 'host' not in self.headers:
self.headers['host'] = urlparse(full_url).netloc
try:
response = self._bucket_response(request, full_url, headers)
except S3ClientError as s3error: