forked from seba/servefile
Added Content-Disposition to HEAD
This commit is contained in:
parent
d9ca9b128c
commit
c206724060
|
@ -52,6 +52,7 @@ class FileHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
||||||
self.send_header('Content-Length', self.fileLength)
|
self.send_header('Content-Length', self.fileLength)
|
||||||
self.send_header('Last-Modified', self.startTime)
|
self.send_header('Last-Modified', self.startTime)
|
||||||
self.send_header('Content-Type', 'application/octet-stream')
|
self.send_header('Content-Type', 'application/octet-stream')
|
||||||
|
self.send_header('Content-Disposition', 'attachment; filename="%s"' % self.fileName)
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
|
|
||||||
def do_GET(self):
|
def do_GET(self):
|
||||||
|
|
Loading…
Reference in New Issue