Sha256: 5dc2938573be83d52873ec8eed22dd48e51ffc1e5b5066d8da28ea43e503541b
Contents?: true
Size: 304 Bytes
Versions: 1
Compression:
Stored size: 304 Bytes
Contents
require 'rack' module I class Rack def initialize(app) @app = app end def call(env) if env["PATH_INFO"] == "/WMD" ["404 Not Found", {"Content-Type" => "text/plain", "Content-Length" => "0"}, []] else @app.call(env) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i-rack-0.1.0 | lib/i-rack/i.rb |