From 6f2061ff37f809ee67be911c3cd2834310316ebd Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 8 Nov 2014 21:22:07 +0100 Subject: [PATCH] Fix :smart Wasn't using the right way --- morss/morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss/morss.py b/morss/morss.py index 18a9cb6..86c5881 100644 --- a/morss/morss.py +++ b/morss/morss.py @@ -782,7 +782,7 @@ def cgi_app(environ, start_response): DEBUG = options.debug if 'HTTP_IF_NONE_MATCH' in environ: - options.last = int(environ['HTTP_IF_NONE_MATCH'][1:-1]) + options['last'] = int(environ['HTTP_IF_NONE_MATCH'][1:-1]) if not options.force and not options.facebook and time.time() - options.last < DELAY: headers['status'] = '304 Not Modified' start_response(headers['status'], headers.items())