Remove new backwards-incompatible arguments from StaticFileHandler.set_extra_headers
This commit is contained in:
parent
110de61b58
commit
7a70185afb
|
@ -1487,7 +1487,7 @@ class StaticFileHandler(RequestHandler):
|
||||||
else:
|
else:
|
||||||
self.set_header("Cache-Control", "public")
|
self.set_header("Cache-Control", "public")
|
||||||
|
|
||||||
self.set_extra_headers(path, modified, mime_type)
|
self.set_extra_headers(path)
|
||||||
|
|
||||||
# Check the If-Modified-Since, and don't send the result if the
|
# Check the If-Modified-Since, and don't send the result if the
|
||||||
# content has not been modified
|
# content has not been modified
|
||||||
|
@ -1507,7 +1507,7 @@ class StaticFileHandler(RequestHandler):
|
||||||
finally:
|
finally:
|
||||||
file.close()
|
file.close()
|
||||||
|
|
||||||
def set_extra_headers(self, path, modified, mime_type):
|
def set_extra_headers(self, path):
|
||||||
"""For subclass to add extra headers to the response"""
|
"""For subclass to add extra headers to the response"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue