From c002a2d31b1b4993567fcfcb7af6bd1c82b44b51 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Sun, 30 Aug 2015 17:24:38 -0300 Subject: [bug] fixes download attachment by querier Will be migrated to leap_mailstore, but the feature is back working now, just a content field change. As #435 --- service/pixelated/adapter/soledad/soledad_reader_mixin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service') diff --git a/service/pixelated/adapter/soledad/soledad_reader_mixin.py b/service/pixelated/adapter/soledad/soledad_reader_mixin.py index 631a8414..58dd9e8e 100644 --- a/service/pixelated/adapter/soledad/soledad_reader_mixin.py +++ b/service/pixelated/adapter/soledad/soledad_reader_mixin.py @@ -82,7 +82,7 @@ class SoledadReaderMixin(SoledadDbFacadeMixin, object): def attachment(self, attachment_ident, encoding): bdoc = yield self.get_content_by_phash(attachment_ident) defer.returnValue({'content': self._try_decode(bdoc.content['raw'], encoding), - 'content-type': bdoc.content['content-type']}) + 'content-type': bdoc.content['content_type']}) def _try_decode(self, raw, encoding): encoding = encoding.lower() -- cgit v1.2.3