Added Content-Disposition to HEAD

This commit is contained in:
Sebastian Lohff 2012-04-12 17:38:05 +02:00
parent d9ca9b128c
commit c206724060
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class FileHandler(BaseHTTPServer.BaseHTTPRequestHandler):
self.send_header('Content-Length', self.fileLength)
self.send_header('Last-Modified', self.startTime)
self.send_header('Content-Type', 'application/octet-stream')
self.send_header('Content-Disposition', 'attachment; filename="%s"' % self.fileName)
self.end_headers()
def do_GET(self):