Skip to content

Commit

Permalink
Merge pull request #921 from picadoh/master
Browse files Browse the repository at this point in the history
Fixing metadata key on s3 operation response
  • Loading branch information
spulec committed May 11, 2017
2 parents 0adebee + 0945765 commit 2f923b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion moto/s3/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def metadata(self):
@property
def response_dict(self):
res = {
'Etag': self.etag,
'ETag': self.etag,
'last-modified': self.last_modified_RFC1123,
'content-length': str(len(self.value)),
}
Expand Down
1 change: 1 addition & 0 deletions tests/test_s3/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def test_s3_server_bucket_create():
res = test_client.put(
'/bar', 'http://foobaz.localhost:5000/', data='test value')
res.status_code.should.equal(200)
assert 'ETag' in dict(res.headers)

res = test_client.get('/bar', 'http://foobaz.localhost:5000/')
res.status_code.should.equal(200)
Expand Down

0 comments on commit 2f923b8

Please sign in to comment.