Created
August 25, 2011 17:38
-
-
Save mattdeboard/1171248 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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