Created
December 11, 2009 12:48
-
-
Save jamesarosen/254193 to your computer and use it in GitHub Desktop.
Hilariously awful joke by Nick Quaranto
This file contains hidden or 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
# Hilariously awful joke by Nick Quaranto | |
# taken from http://www.httpstatusok.com/#46 | |
class I::Rack | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
if env["PATH_INFO"] == "/WMD" | |
[ | |
404, | |
{"Content-Type" => "text/plain"}, | |
"Not found" | |
] | |
else | |
@app.call(env) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment