summaryrefslogtreecommitdiff
path: root/service/pixelated/resources/mails_resource.py
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2016-02-02 13:00:11 -0300
committerVictor Shyba <victor.shyba@gmail.com>2016-02-02 13:00:11 -0300
commit076271c99cbfd5ad2fef1ca3e6fcd6902d9f346b (patch)
treeee607db2aa904147fa117d9273d48cb0fbd21516 /service/pixelated/resources/mails_resource.py
parent621386b121dd6b3befd531ed72cca9293b463c41 (diff)
parent6d809fa4abdb824cb47455e057dfc8c344641474 (diff)
Merge branch 'load', the load testing code
Diffstat (limited to 'service/pixelated/resources/mails_resource.py')
-rw-r--r--service/pixelated/resources/mails_resource.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/resources/mails_resource.py b/service/pixelated/resources/mails_resource.py
index 7b5d1af4..61ada60e 100644
--- a/service/pixelated/resources/mails_resource.py
+++ b/service/pixelated/resources/mails_resource.py
@@ -217,7 +217,7 @@ class MailsResource(BaseResource):
with_attachment_content = yield self._fetch_attachment_contents(content_dict, _mail_service)
sent_mail = yield _mail_service.send_mail(with_attachment_content)
- respond_json_deferred(sent_mail.as_dict(), request)
+ respond_json_deferred(sent_mail.as_dict(), request, status_code=201)
@defer.inlineCallbacks
def _handle_put(self, request):