summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorVictor Shyba <victor1984@riseup.net>2017-06-22 02:29:52 -0300
committerVictor Shyba <victor1984@riseup.net>2017-07-02 01:32:39 -0300
commitb9a906aadbf9561cff76d406d89b644ee1f0e67a (patch)
treecb568b9b59b3de4d0ebcd96129667a5079c22d3b /server
parentcbcc049737e26e30db8890e31d6b98725bdb3385 (diff)
[style] fix naming from review
Diffstat (limited to 'server')
-rw-r--r--server/src/leap/soledad/server/_incoming.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/leap/soledad/server/_incoming.py b/server/src/leap/soledad/server/_incoming.py
index 009c0578..1f74a6e4 100644
--- a/server/src/leap/soledad/server/_incoming.py
+++ b/server/src/leap/soledad/server/_incoming.py
@@ -18,9 +18,9 @@
A twisted resource that saves externally delivered documents into user's db.
"""
from twisted.web.resource import Resource
-from leap.soledad.common.document import ServerDocument
from ._config import get_config
from leap.soledad.common.couch.state import CouchServerState
+from leap.soledad.common.document import ServerDocument
from leap.soledad.common.crypto import ENC_JSON_KEY
from leap.soledad.common.crypto import ENC_SCHEME_KEY
from leap.soledad.common.crypto import EncryptionSchemes
@@ -49,7 +49,7 @@ class IncomingResource(Resource):
doc = ServerDocument(doc_id)
doc.content = self.formatter.format(request.content.read(), scheme)
db.put_doc(doc)
- return ''
+ return '{"success": true}'
class IncomingFormatter(object):