]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fixed syntax error in the altered StaticFileHandler.get() method
authorBirk Nilson <me@birknilson.se>
Fri, 9 Mar 2012 17:46:21 +0000 (18:46 +0100)
committerBirk Nilson <me@birknilson.se>
Fri, 9 Mar 2012 17:46:21 +0000 (18:46 +0100)
tornado/web.py

index 0c4b0076cef25efc5e77139ea97a7df21c7e4b70..23a9303d44edeb758c2e5d16924687da6712bc30 100644 (file)
@@ -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)