Add ability to bypass ETag support

Add the ":force" argument over http to bypass ETag support, which is convenient to debug code
master
pictuga 2013-09-15 15:54:42 +02:00
parent d2de6cf23d
commit 75b51fc2c2
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ if __name__ == '__main__':
DEBUG = 'debug' in options DEBUG = 'debug' in options
if 'REQUEST_URI' in os.environ: 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: if time.time() - int(os.environ['HTTP_IF_NONE_MATCH'][1:-1]) < DELAY:
print 'Status: 304' print 'Status: 304'
print print