diff options
author | Victor Shyba <victor.shyba@gmail.com> | 2015-08-30 17:24:38 -0300 |
---|---|---|
committer | Victor Shyba <victor.shyba@gmail.com> | 2015-08-30 17:24:38 -0300 |
commit | c002a2d31b1b4993567fcfcb7af6bd1c82b44b51 (patch) | |
tree | c78de85172b79f147e23cbdd115ae4ca3f1976ad /service | |
parent | af211627657ce60502f329f36b0109f104ab2d04 (diff) |
[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
Diffstat (limited to 'service')
-rw-r--r-- | service/pixelated/adapter/soledad/soledad_reader_mixin.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |