Skip to content

Commit

Permalink
Use errors#puts instead of #<< in Sendfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Gierth committed Sep 16, 2011
1 parent 1ce8d39 commit 11b143b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/rack/sendfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def call(env)
headers[type] = url
body = []
else
env['rack.errors'] << "X-Accel-Mapping header missing"
env['rack.errors'].puts "X-Accel-Mapping header missing"
end
when 'X-Sendfile', 'X-Lighttpd-Send-File'
path = F.expand_path(body.to_path)
Expand All @@ -117,7 +117,7 @@ def call(env)
body = []
when '', nil
else
env['rack.errors'] << "Unknown x-sendfile variation: '#{variation}'.\n"
env['rack.errors'].puts "Unknown x-sendfile variation: '#{variation}'.\n"
end
end
[status, headers, body]
Expand Down

0 comments on commit 11b143b

Please sign in to comment.