iliaa           Mon Feb 23 14:50:08 2004 EDT

  Modified files:              
    /php-src/ext/curl   interface.c 
  Log:
  Fixed bug #27341 (HEAD requests fail to return data).
  
  
http://cvs.php.net/diff.php/php-src/ext/curl/interface.c?r1=1.31&r2=1.32&ty=u
Index: php-src/ext/curl/interface.c
diff -u php-src/ext/curl/interface.c:1.31 php-src/ext/curl/interface.c:1.32
--- php-src/ext/curl/interface.c:1.31   Sun Jan 25 23:59:59 2004
+++ php-src/ext/curl/interface.c        Mon Feb 23 14:50:07 2004
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: interface.c,v 1.31 2004/01/26 04:59:59 sniper Exp $ */
+/* $Id: interface.c,v 1.32 2004/02/23 19:50:07 iliaa Exp $ */
 
 #define ZEND_INCLUDE_FULL_WINDOWS_HEADERS
 
@@ -1132,7 +1132,8 @@
        
        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);
                }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to