Skip to content

Instantly share code, notes, and snippets.

@jamesarosen
Created December 11, 2009 12:48
Show Gist options
  • Save jamesarosen/254193 to your computer and use it in GitHub Desktop.
Save jamesarosen/254193 to your computer and use it in GitHub Desktop.
Hilariously awful joke by Nick Quaranto
# 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