From: Ben Darnell Date: Sun, 17 Jul 2011 17:25:53 +0000 (-0700) Subject: Remove new backwards-incompatible arguments from StaticFileHandler.set_extra_headers X-Git-Tag: v2.1.0~78^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a70185afbe5d8b750b060cb508754f376a62100;p=thirdparty%2Ftornado.git Remove new backwards-incompatible arguments from StaticFileHandler.set_extra_headers --- diff --git a/tornado/web.py b/tornado/web.py index 7b79570a1..dc2b3ce2d 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -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