Created
March 28, 2015 11:16
-
-
Save daedalist/e2a77cf37764f6c477a7 to your computer and use it in GitHub Desktop.
GNU Terry Pratchett for webapp2
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
""" Add the GNU Terry Pratchett header to your webapp2 RequestHandler | |
A couple lines can be quickly added to your webapp2 handlers (commonly found in Google App | |
Engine instances) that adds the aforementioned header to ensure that his name will always | |
be spoken with the following Clacks codes: | |
G: send the message on | |
N: do not log the message | |
U: turn the message around at the end of the line and send it back again | |
'A man is not dead while his name is spoken.' -- Going Postal | |
RIP Sir Terry Pratchett 2015 | |
Original Reddit thread: http://redd.it/2yt9j6 | |
""" | |
class MainPage(webapp2.RequestHandler): | |
def __init__(self, *args, **kwargs): | |
super(MainPage, self).__init__(*args, **kwargs) | |
self.response.headers['X-Clacks-Overhead'] = 'GNU Terry Pratchett' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment