Skip to content

Instantly share code, notes, and snippets.

@rb2k
Created March 2, 2011 10:18
Show Gist options
  • Save rb2k/850737 to your computer and use it in GitHub Desktop.
Save rb2k/850737 to your computer and use it in GitHub Desktop.
require "rubygems"
rack_app = Proc.new do |env|
[200, {"Content-Type"=>"text/html"}, env["REMOTE_ADDR"]]
end
run rack_app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment