Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Don't strip 3 chars off error return values
  • Loading branch information
ConradIrwin committed Sep 14, 2009
1 parent bc90635 commit f8da800
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/selenium/client/protocol.rb
Expand Up @@ -87,7 +87,11 @@ def http_post(data)
http.read_timeout = default_timeout_in_seconds
response = http.post('/selenium-server/driver/', data, HTTP_HEADERS)
# puts "RESULT: #{response.body.inspect}\n"
[ response.body[0..1], response.body[3..-1] ]
if response.body[0..2] == "OK,"
[ response.body[0..1], response.body[3..-1] ]
else
[ "", response]
end
end

end
Expand Down

0 comments on commit f8da800

Please sign in to comment.