'.. http:get:: /download/(string: infohash)/torrent
A GET request to this endpoint returns the .torrent file associated with the specified download.
**Example request**:
.. sourcecode:: none
curl -X GET http://localhost:8085/downloads/4344503b7e797ebf31582327a5baae35b11bda01/torrent
**Example response**:
The contents of the .torrent file.'

def render_GET(self, request):

    download = self.session.get_download(self.infohash)
    if (not download):
        return DownloadExportTorrentEndpoint.return_404(request)
    request.setHeader('content-type', 'application/x-bittorrent')
    request.setHeader('Content-Disposition', ('attachment;    filename=%s.torrent' % self.infohash.encode('hex')))
    return self.session.get_collected_torrent(self.infohash)
