summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/curl/interface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c
index b142445ba0..bbdcdbfbe7 100644
--- a/ext/curl/interface.c
+++ b/ext/curl/interface.c
@@ -3113,8 +3113,8 @@ PHP_FUNCTION(curl_exec)
error = curl_easy_perform(ch->cp);
SAVE_CURL_ERROR(ch, error);
- /* CURLE_PARTIAL_FILE is returned by HEAD requests */
- if (error != CURLE_OK && error != CURLE_PARTIAL_FILE) {
+
+ if (error != CURLE_OK) {
smart_str_free(&ch->handlers->write->buf);
RETURN_FALSE;
}