Skip to content

Commit e130fb7

Browse files
committed
Do not trigger error if response is empty
This happens from time to time with some Selenium2 servers. And checking for empty responses is Selenium2 job, not CURL anyway.
1 parent 4e72081 commit e130fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WebDriver/Service/CurlService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function execute($requestMethod, $url, $parameters = null, $extraOptions
8383
$rawResults = trim(curl_exec($curl));
8484
$info = curl_getinfo($curl);
8585

86-
if ($error = curl_error($curl)) {
86+
if (URLE_GOT_NOTHING !== curl_errno($curl) && $error = curl_error($curl)) {
8787
$message = sprintf(
8888
'Curl error thrown for http %s to %s%s',
8989
$requestMethod,

0 commit comments

Comments
 (0)