Skip to content

Instantly share code, notes, and snippets.

@mcdonc
Created January 3, 2011 05:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mcdonc/763155 to your computer and use it in GitHub Desktop.
Save mcdonc/763155 to your computer and use it in GitHub Desktop.
def commit_veto(environ, status, headers):
for good in ('10', '20', '30', '40'):
if not status.startswith(good):
return True
for header_name, header_value in headers:
if header_name.lower() == 'x-tm-abort':
return True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment