X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_send_api.c;fp=http_send_api.c;h=cbfe6f068d153d8977a3f1299c9e7f60b2cccdd8;hp=ae7bc490de7d14f0df203a35af116e36e0a71371;hb=22616d7660e06425a33ffefe748d4aa6067c2a43;hpb=228695ee6fcabcead88bd7bf9532dbb64f9a2707 diff --git a/http_send_api.c b/http_send_api.c index ae7bc49..cbfe6f0 100644 --- a/http_send_api.c +++ b/http_send_api.c @@ -420,7 +420,7 @@ PHP_HTTP_API STATUS _http_send_ex(const void *data_ptr, size_t data_size, http_s char boundary_str[32], range_header_str[256]; size_t boundary_len, range_header_len; - boundary_len = snprintf(boundary_str, sizeof(boundary_str), "%lu%0.9f", (ulong) HTTP_G->request.time, (float) php_combined_lcg(TSRMLS_C)); + boundary_len = http_boundary(boundary_str, sizeof(boundary_str)); range_header_len = snprintf(range_header_str, sizeof(range_header_str), "Content-Type: multipart/byteranges; boundary=%s", boundary_str); http_send_status_header_ex(206, range_header_str, range_header_len, 1);