Skip to content

Instantly share code, notes, and snippets.

@evanphx
Created July 2, 2013 22:51
Show Gist options
  • Save evanphx/5913953 to your computer and use it in GitHub Desktop.
Save evanphx/5913953 to your computer and use it in GitHub Desktop.
require 'rack/util/file'
path = ARGV.shift || Dir.pwd
run Rack::File.new(path, { 'Accept-Ranges' => 'bytes'})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment