Forked from antdking/django_GNUTerryPratchett.py
Last active
August 29, 2015 14:17
-
-
Save stephen2m/208683b36159a03d8f7e 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
# middleware to add GNU Terry Pratchett to django | |
# point to this class in your MIDDLEWARE_CLASSES | |
class GNUTerryPratchett(object): | |
@staticmethod | |
def process_response(request, response): | |
response['X-Clacks-Overhead'] = 'GNU Terry Pratchett' | |
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment