Skip to content

Instantly share code, notes, and snippets.

@mattdeboard
Created August 25, 2011 17:38
Show Gist options
  • Save mattdeboard/1171248 to your computer and use it in GitHub Desktop.
Save mattdeboard/1171248 to your computer and use it in GitHub Desktop.
range = http_request_header['Range'] # would be of type list in this example
def request_header(bad_range):
if bad_range:
range = None
return range
def setenvif():
bad_range = None
if len(range) > 5:
bad_range = 1
return request_header(bad_range)
setenvif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment