Skip to content

Commit

Permalink
Add missing content_type on filesystem.get_one
Browse files Browse the repository at this point in the history
  • Loading branch information
Stéphane Brunner committed Aug 1, 2013
1 parent cbcfe07 commit f97b8a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tilecloud/store/filesystem.py
Expand Up @@ -29,6 +29,8 @@ def get_one(self, tile):
try:
with open(filename) as file:
tile.data = file.read()
if self.content_type is not None:
tile.content_type = self.content_type
return tile
except IOError as e:
if e.errno == errno.ENOENT:
Expand Down

0 comments on commit f97b8a7

Please sign in to comment.