53
53
revid = h.fix_revid(args[0])
55
path, filename, content = h.get_file(file_id, revid)
56
56
mime_type, encoding = mimetypes.guess_type(filename)
58
58
mime_type = 'application/octet-stream'
60
self.log.info('/download %s @ %s (%d bytes)', path, h.get_revno(revid), len(content))
60
61
response.headers['Content-Type'] = mime_type
61
62
response.headers['Content-Length'] = len(content)