Add ability to bypass ETag support
Add the ":force" argument over http to bypass ETag support, which is convenient to debug codemaster
parent
d2de6cf23d
commit
75b51fc2c2
2
morss.py
2
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
|
||||
|
|
Loading…
Reference in New Issue