Send correct headers on range/HEAD request

This commit is contained in:
Sebastian Lohff 2015-08-03 05:41:51 +02:00
parent cb4ebb017f
commit 0c781c2b73
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ class DirListingHandler(FileBaseHandler):
self.end_headers()
else:
self.send_response(200)
self.sendContentHeaders(self, path, length)
self.sendContentHeaders(path, length)
self.end_headers()
else:
self.sendFile(path, head)