Skip to content

Instantly share code, notes, and snippets.

@rafb43
Created July 29, 2010 04:34
Show Gist options
  • Select an option

  • Save rafb43/497253 to your computer and use it in GitHub Desktop.

Select an option

Save rafb43/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