summaryrefslogtreecommitdiff
path: root/service/pixelated/resources/attachments_resource.py
diff options
context:
space:
mode:
authorNavaL <mnandri@thoughtworks.com>2016-01-06 18:11:10 +0100
committerNavaL <mnandri@thoughtworks.com>2016-01-11 16:56:29 +0100
commit0e39a9a95ba273545950c5db7f92132dd8b95395 (patch)
tree9d8c1f33d37d9823989f59d583402fae06ac81ae /service/pixelated/resources/attachments_resource.py
parentdb38cc2919fbe5f52d9eb73f45fd89a84da89682 (diff)
removing GET support on attachment API
Issue #548
Diffstat (limited to 'service/pixelated/resources/attachments_resource.py')
-rw-r--r--service/pixelated/resources/attachments_resource.py7
1 files changed, 0 insertions, 7 deletions
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 '<html><body><p></p>' \
- '<form method="POST" enctype="multipart/form-data">' \
- '<input name="attachment" type="file" /> <p></p>' \
- '<input type="submit" /></form><p></p>' \
- '</body></html>'
-
def render_POST(self, request):
fields = cgi.FieldStorage(fp=request.content, headers=(request.getAllHeaders()),
environ={'REQUEST_METHOD': 'POST'})