You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HTTP HEAD method is not implemented correctly. Instead of passing in HEAD as the CURLOPT_CUSTOMREQUEST, the CURLOPT_NOBODY option should be set instead. The bug results in slow and hanging HEAD requests.
Which server(s) are you seeing this behaviour with? I added a HEAD request test in the functional test and that doesn't seem to hang, but maybe that's just the PHP built-in server's behaviour.
I also wonder if setting CURLOPT_NOBODY should be done in other cases, like DELETE.
The HTTP HEAD method is not implemented correctly. Instead of passing in HEAD as the CURLOPT_CUSTOMREQUEST, the CURLOPT_NOBODY option should be set instead. The bug results in slow and hanging HEAD requests.
Proposed Fix:
Line 275:
} elseif ($method === 'head') {
curl_setopt($this->ch, CURLOPT_NOBODY, 1);
The text was updated successfully, but these errors were encountered: