]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Remove new backwards-incompatible arguments from StaticFileHandler.set_extra_headers
authorBen Darnell <ben@bendarnell.com>
Sun, 17 Jul 2011 17:25:53 +0000 (10:25 -0700)
committerBen Darnell <ben@bendarnell.com>
Sun, 17 Jul 2011 17:46:01 +0000 (10:46 -0700)
tornado/web.py

index 7b79570a137156721788b3c51179548bfcf73ddb..dc2b3ce2d91aa19f3cde33daffcfcbf2356406f9 100644 (file)
@@ -1487,7 +1487,7 @@ class StaticFileHandler(RequestHandler):
         else:
             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
         # content has not been modified
@@ -1507,7 +1507,7 @@ class StaticFileHandler(RequestHandler):
         finally:
             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"""
         pass