$result->error is currently always set, even when no error occurred. This is not according to the functions definitions.

Index: chr.module
===================================================================
--- chr.module  (revision 3133)
+++ chr.module  (working copy)
@@ -225,6 +225,9 @@
     $result->code = $result->errno;
     return $result;
   }
+  else {
+    unset($result->error);
+  }

   // The last effective URL should correspond to the Redirect URL.
   $result->redirect_url = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);

Comments

minoroffense’s picture

Status: Active » Patch (to be ported)

Fixed in 7.x-1.x

minoroffense’s picture

Version: 6.x-1.5 » 8.x-1.x-dev
Priority: Normal » Minor