Send correct headers on range/HEAD request
This commit is contained in:
parent
cb4ebb017f
commit
0c781c2b73
|
@ -321,7 +321,7 @@ class DirListingHandler(FileBaseHandler):
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
else:
|
else:
|
||||||
self.send_response(200)
|
self.send_response(200)
|
||||||
self.sendContentHeaders(self, path, length)
|
self.sendContentHeaders(path, length)
|
||||||
self.end_headers()
|
self.end_headers()
|
||||||
else:
|
else:
|
||||||
self.sendFile(path, head)
|
self.sendFile(path, head)
|
||||||
|
|
Loading…
Reference in New Issue