Skip to content

Commit

Permalink
Make Rack::Response#write call #to_s
Browse files Browse the repository at this point in the history
proposed by Gary Wright

darcs-hash:20070311135012-4fc50-b61259811138cd60e3ecfe7dc841174b4ae13612.gz
  • Loading branch information
leahneukirchen committed Mar 11, 2007
1 parent cb306d7 commit 1d9ee63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def each(&callback)
end

def write(str)
@writer.call str
@writer.call str.to_s
str
end
end
Expand Down

0 comments on commit 1d9ee63

Please sign in to comment.