Skip to content

Instantly share code, notes, and snippets.

@x0bandeira
Created July 29, 2010 04:34
Show Gist options
  • Save x0bandeira/497253 to your computer and use it in GitHub Desktop.
Save x0bandeira/497253 to your computer and use it in GitHub Desktop.
use Rack::ContentLength
run lambda { |env|
[200, {'Content-Type'=>'text/html'}, ::File.open("index.html", "r")]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment