From 28ce52715394e1b10774a2d29b7d11e194062d05 Mon Sep 17 00:00:00 2001 From: Felix Hammerl Date: Fri, 13 May 2016 11:22:01 +0200 Subject: Issue #691: Refactor to Twisted 16.1.1 --- service/pixelated/resources/attachments_resource.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service/pixelated/resources/attachments_resource.py') diff --git a/service/pixelated/resources/attachments_resource.py b/service/pixelated/resources/attachments_resource.py index 086f6e4e..0149dfe2 100644 --- a/service/pixelated/resources/attachments_resource.py +++ b/service/pixelated/resources/attachments_resource.py @@ -91,7 +91,7 @@ class AttachmentsResource(BaseResource): deferred = _mail_service.save_attachment(_file.value, _file.type) def send_location(attachment_id): - request.headers['Location'] = '/%s/%s' % (self.BASE_URL, attachment_id) + request.setHeader('Location', '/%s/%s' % (self.BASE_URL, attachment_id)) response_json = {"ident": attachment_id, "content-type": _file.type, "encoding": "base64", # hard coded for now -- not really used -- cgit v1.2.3