Browse files

fix for previous fix: return the correct object for error cases, and …

…don't treat messageless success cases as errors
  • Loading branch information...
1 parent f8da800 commit 52aaf119f493d837d39a4dce8eb35cabc26ead83 @samstokes samstokes committed Sep 15, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/selenium/client/protocol.rb
View
4 lib/selenium/client/protocol.rb
@@ -87,10 +87,10 @@ 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"
- if response.body[0..2] == "OK,"
+ if response.body[0..1] == "OK"
[ response.body[0..1], response.body[3..-1] ]
else
- [ "", response]
+ [ "", response.body ]
end
end

0 comments on commit 52aaf11

Please sign in to comment.