From f97b8a7b7b94489acdb169f7bc0bfdcb362dcbd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Thu, 1 Aug 2013 12:07:35 +0200 Subject: [PATCH] Add missing content_type on filesystem.get_one --- tilecloud/store/filesystem.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tilecloud/store/filesystem.py b/tilecloud/store/filesystem.py index d009e050d..902433527 100644 --- a/tilecloud/store/filesystem.py +++ b/tilecloud/store/filesystem.py @@ -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: