summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2015-08-30 17:24:38 -0300
committerVictor Shyba <victor.shyba@gmail.com>2015-08-30 17:24:38 -0300
commitc002a2d31b1b4993567fcfcb7af6bd1c82b44b51 (patch)
treec78de85172b79f147e23cbdd115ae4ca3f1976ad /service/pixelated/adapter
parentaf211627657ce60502f329f36b0109f104ab2d04 (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/pixelated/adapter')
-rw-r--r--service/pixelated/adapter/soledad/soledad_reader_mixin.py2
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()