From 0e39a9a95ba273545950c5db7f92132dd8b95395 Mon Sep 17 00:00:00 2001 From: NavaL Date: Wed, 6 Jan 2016 18:11:10 +0100 Subject: removing GET support on attachment API Issue #548 --- service/pixelated/resources/attachments_resource.py | 7 ------- 1 file changed, 7 deletions(-) (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 ffd05c29..e7bb6bdb 100644 --- a/service/pixelated/resources/attachments_resource.py +++ b/service/pixelated/resources/attachments_resource.py @@ -79,13 +79,6 @@ class AttachmentsResource(Resource): def getChild(self, attachment_id, request): return AttachmentResource(self.mail_service, attachment_id) - def render_GET(self, request): - return '

' \ - '
' \ - '

' \ - '

' \ - '' - def render_POST(self, request): fields = cgi.FieldStorage(fp=request.content, headers=(request.getAllHeaders()), environ={'REQUEST_METHOD': 'POST'}) -- cgit v1.2.3