From 75b51fc2c2a6309d927e050a2a98578271e83f7c Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 15 Sep 2013 15:54:42 +0200 Subject: [PATCH] Add ability to bypass ETag support Add the ":force" argument over http to bypass ETag support, which is convenient to debug code --- morss.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/morss.py b/morss.py index 69e2257..0b01694 100644 --- a/morss.py +++ b/morss.py @@ -410,7 +410,7 @@ if __name__ == '__main__': DEBUG = 'debug' in options if 'REQUEST_URI' in os.environ: - if 'HTTP_IF_NONE_MATCH' in os.environ: + if 'HTTP_IF_NONE_MATCH' in os.environ and 'force' not in options: if time.time() - int(os.environ['HTTP_IF_NONE_MATCH'][1:-1]) < DELAY: print 'Status: 304' print