Permalink
Browse files

Merge pull request #659 from patriciomacadden/header-headers

Use `headers` method instead of `header` method in `Sinatra::Response`
  • Loading branch information...
2 parents f8c0385 + 9ce004f commit 08effab5d2f280318da2cf92603079b51c038d1a @rkh rkh committed Mar 7, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/sinatra/base.rb
View
@@ -125,7 +125,7 @@ def finish
headers["Content-Length"] = body.inject(0) { |l, p| l + Rack::Utils.bytesize(p) }.to_s
end
- [status.to_i, header, result]
+ [status.to_i, headers, result]
end
private
@@ -159,7 +159,7 @@ def call(env)
private
- def setup_close(env, status, header, body)
+ def setup_close(env, status, headers, body)
return unless body.respond_to? :close and env.include? 'async.close'
env['async.close'].callback { body.close }
env['async.close'].errback { body.close }

0 comments on commit 08effab

Please sign in to comment.