Permalink
Browse files

resolve undefined method 'each_line' error

  • Loading branch information...
1 parent 952ff1a commit 56098d9e4c139613845289bdd5acebdfe608981a @A-OK A-OK committed Aug 11, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 rlibs/fuzed_handler.rb
View
2 rlibs/fuzed_handler.rb
@@ -121,7 +121,7 @@ def service(request)
res =
[:response,
[[:status, status.to_i],
- [:allheaders, headers.inject([]) { |a, x| a += x[1].each_line.map { |y| [:header, x[0], y] } }],
+ [:allheaders, headers.keys.inject([]) {|x,y| x << [:header, y, headers[y]]}],
[:html, html]]]
rescue => e
res =

0 comments on commit 56098d9

Please sign in to comment.