Skip to content

Commit

Permalink
Fix for Ruby 1.8.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jferris committed Jun 14, 2011
1 parent d7d4ed1 commit b03198f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capybara/driver/webkit/browser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def check
def read_response
response_length = @socket.gets.to_i
response = @socket.read(response_length)
response.force_encoding("UTF-8")
response.force_encoding("UTF-8") if response.respond_to?(:force_encoding)
response
end
end
Expand Down

0 comments on commit b03198f

Please sign in to comment.