1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 03:22:58 +02:00

Return proper length, thanks for excellent reports by Colin.

This commit is contained in:
Sterling Hughes
2001-07-11 18:10:52 +00:00
parent 87e3924379
commit f76c42688d

View File

@@ -379,6 +379,9 @@ static size_t curl_write_header(char *data, size_t size, size_t nmemb, void *ctx
smart_str_appendl(&ch->handlers->write->buf, data, size * nmemb);
else
PUTS(data);
length = size * nmemb;
break;
case PHP_CURL_FILE:
length = fwrite(data, size, nmemb, t->fp);