Skip to content

Commit

Permalink
removed some unnecessary stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
vast committed Dec 7, 2009
1 parent b83fe71 commit bcec82d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions lib/sinatra/x_send_file.rb
Expand Up @@ -3,8 +3,6 @@ module Sinatra

module XSendFile
def x_send_file(path, opts = {})
stat = File.stat(path)

content_type media_type(opts[:type]) ||
media_type(File.extname(path)) ||
response['Content-Type'] ||
Expand Down
4 changes: 0 additions & 4 deletions test/sinatra_x_send_file_test.rb
Expand Up @@ -31,8 +31,4 @@ def test_header_global_override
assert_not_nil last_response.headers['x-test-send-file']
end

def test_sendfile_overriding
get '/sendfile'
assert_not_nil last_response.headers['x-test-send-file']
end
end

0 comments on commit bcec82d

Please sign in to comment.