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

Commit

Permalink
fix for previous fix: return the correct object for error cases, and …
Browse files Browse the repository at this point in the history
…don't treat messageless success cases as errors
  • Loading branch information
samstokes committed Sep 15, 2009
1 parent f8da800 commit 52aaf11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/selenium/client/protocol.rb
Expand Up @@ -87,10 +87,10 @@ def http_post(data)
http.read_timeout = default_timeout_in_seconds http.read_timeout = default_timeout_in_seconds
response = http.post('/selenium-server/driver/', data, HTTP_HEADERS) response = http.post('/selenium-server/driver/', data, HTTP_HEADERS)
# puts "RESULT: #{response.body.inspect}\n" # puts "RESULT: #{response.body.inspect}\n"
if response.body[0..2] == "OK," if response.body[0..1] == "OK"
[ response.body[0..1], response.body[3..-1] ] [ response.body[0..1], response.body[3..-1] ]
else else
[ "", response] [ "", response.body ]
end end
end end


Expand Down

0 comments on commit 52aaf11

Please sign in to comment.