Merge pull request #1459 from okomestudio/fix-404-response-on-s3-head

Fix the S3 HEAD response body
This commit is contained in:
Steve Pulec 2018-03-06 21:56:50 -05:00 committed by GitHub
commit 2134600e29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,7 +172,7 @@ class ResponseObject(_TemplateEnvironmentMixin):
# HEAD (which the real API responds with), and instead
# raises NoSuchBucket, leading to inconsistency in
# error response between real and mocked responses.
return 404, {}, "Not Found"
return 404, {}, ""
return 200, {}, ""
def _bucket_response_get(self, bucket_name, querystring, headers):