From: Birk Nilson Date: Fri, 9 Mar 2012 17:46:21 +0000 (+0100) Subject: Fixed syntax error in the altered StaticFileHandler.get() method X-Git-Tag: v3.1.0~67^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0048efc32a2415d5f34ed2067901261ca94ade5;p=thirdparty%2Ftornado.git Fixed syntax error in the altered StaticFileHandler.get() method --- diff --git a/tornado/web.py b/tornado/web.py index 0c4b0076c..23a9303d4 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -1507,7 +1507,7 @@ class StaticFileHandler(RequestHandler): if not os.path.isfile(abspath): raise HTTPError(403, "%s is not a file", path) - if not self.set_headers(abspath, path) + if not self.set_headers(abspath, path): return body = self.get_content(abspath)