diff options
Diffstat (limited to 'fbin.py')
-rwxr-xr-x | fbin.py | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -143,7 +143,7 @@ class Application(object): return files def validate_cookie(self, cookie): - if not cookie: + if not cookie or not 'identifier' in cookie: return None identifier = cookie['identifier'].value @@ -501,7 +501,7 @@ class Application(object): def static(self, environ, start_response, path): filename = path[1] - if not filename in ('style.css', 'no-thumbnail.png', 'favicon.ico'): + if not filename in ('style.css', 'no-thumbnail.png', 'favicon.ico', 'jquery-2.1.0.min.js', 'jquery.lazyload.min.js'): start_response('404 Not Found', []) return [] @@ -678,3 +678,5 @@ if __name__ == '__main__': WSGIServer.address_family |= 10 http = make_server('', 8000, Application()) http.serve_forever() + +# vim: noet ts=4 |