From: Michael Wallner Date: Mon, 14 Feb 2005 10:20:17 +0000 (+0000) Subject: * ms cc chokes on that X-Git-Tag: RELEASE_0_4_0~7 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=c009ba720a9af5e78a836555f15f1b31d3c43174;p=m6w6%2Fext-http * ms cc chokes on that --- diff --git a/http_api.c b/http_api.c index eb0fab4..c04b2e8 100644 --- a/http_api.c +++ b/http_api.c @@ -290,7 +290,7 @@ static STATUS _http_send_chunk(const void *data, const size_t begin, break; case SEND_DATA: - return len == php_body_write(data + begin, len TSRMLS_CC) + return len == php_body_write(((char *)data) + begin, len TSRMLS_CC) ? SUCCESS : FAILURE; break; @@ -1067,7 +1067,7 @@ PHP_HTTP_API void _http_ob_etaghandler(char *output, uint output_len, { char etag[33] = { 0 }; unsigned char digest[16]; - + if (mode & PHP_OUTPUT_HANDLER_START) { PHP_MD5Init(&HTTP_G(etag_md5)); } @@ -1076,7 +1076,7 @@ PHP_HTTP_API void _http_ob_etaghandler(char *output, uint output_len, if (mode & PHP_OUTPUT_HANDLER_END) { PHP_MD5Final(digest, &HTTP_G(etag_md5)); - + /* just do that if desired */ if (HTTP_G(etag_started)) { make_digest(etag, digest); @@ -1541,7 +1541,7 @@ PHP_HTTP_API STATUS _http_send(const void *data_ptr, const size_t data_size, efree(etag); return FAILURE; } - + /* send 304 Not Modified if etag matches */ if ((!is_range_request) && http_etag_match("HTTP_IF_NONE_MATCH", etag)) { efree(etag);