Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def commit_veto(environ, status, headers):
- for good in ('1', '2', '3'):
- if status.startswith(good):
- break
- else:
- return True
- for header_name, header_value in headers:
- if header_name.lower() == 'x-tm-abort':
- return True
Add Comment
Please, Sign In to add comment