summaryrefslogtreecommitdiff
path: root/fbin.py
diff options
context:
space:
mode:
Diffstat (limited to 'fbin.py')
-rwxr-xr-xfbin.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/fbin.py b/fbin.py
index 4a94e97..b5dabd2 100755
--- a/fbin.py
+++ b/fbin.py
@@ -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