summaryrefslogtreecommitdiff
path: root/service/pixelated/resources/attachments_resource.py
diff options
context:
space:
mode:
authorFelix Hammerl <fhammerl@thoughtworks.com>2016-05-13 11:22:01 +0200
committerFelix Hammerl <fhammerl@thoughtworks.com>2016-05-13 11:24:30 +0200
commit28ce52715394e1b10774a2d29b7d11e194062d05 (patch)
tree8eb21c7a4c7c4aef858b70c76bdf86c36cf38be7 /service/pixelated/resources/attachments_resource.py
parenta2fa18ea2c47571c07b6d4bae387274ac0ccdea6 (diff)
Issue #691: Refactor to Twisted 16.1.1
Diffstat (limited to 'service/pixelated/resources/attachments_resource.py')
-rw-r--r--service/pixelated/resources/attachments_resource.py2
1 files changed, 1 insertions, 1 deletions
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