Browse files

Make Rack::Response#write call #to_s

proposed by Gary Wright

darcs-hash:20070311135012-4fc50-b61259811138cd60e3ecfe7dc841174b4ae13612.gz
  • Loading branch information...
1 parent cb306d7 commit 1d9ee6323def720d5589e01eacbff594575ed989 @chneukirchen committed Mar 11, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/response.rb
View
2 lib/rack/response.rb
@@ -107,7 +107,7 @@ def each(&callback)
end
def write(str)
- @writer.call str
+ @writer.call str.to_s
str
end
end

0 comments on commit 1d9ee63

Please sign in to comment.