Patch (to be ported)
Project:
cURL HTTP Request
Version:
8.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 May 2012 at 09:54 UTC
Updated:
27 Oct 2013 at 22:34 UTC
$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
Comment #1
minoroffense commentedFixed in 7.x-1.x
Comment #2
minoroffense commented