diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2004-02-23 19:50:07 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2004-02-23 19:50:07 +0000 |
| commit | 11366f4886da1f8cbfd5fdcd5269440b04b2e120 (patch) | |
| tree | facbca281187f35d6e5c1992d3bb2083d883d554 /ext/curl | |
| parent | 769dc0be75c0c3e19b25053e6dfbbd706e1aaebb (diff) | |
| download | php-git-11366f4886da1f8cbfd5fdcd5269440b04b2e120.tar.gz | |
Fixed bug #27341 (HEAD requests fail to return data).
Diffstat (limited to 'ext/curl')
| -rw-r--r-- | ext/curl/interface.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/curl/interface.c b/ext/curl/interface.c index 8dc4bea3e4..f622c8bc77 100644 --- a/ext/curl/interface.c +++ b/ext/curl/interface.c @@ -1132,7 +1132,8 @@ PHP_FUNCTION(curl_exec) error = curl_easy_perform(ch->cp); SAVE_CURL_ERROR(ch, error); - if (error != CURLE_OK) { + /* CURLE_PARTIAL_FILE is returned by HEAD requests */ + if (error != CURLE_OK && error != CURLE_PARTIAL_FILE) { if (ch->handlers->write->buf.len > 0) { smart_str_free(&ch->handlers->write->buf); } |
