X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=http_send_api.c;h=ef8bf2d137cf9cb1b7dbb9675e2514403c22dca1;hp=ae7bc490de7d14f0df203a35af116e36e0a71371;hb=5eab9789044c40c91512d27ba5663cdf04b8b972;hpb=aca5a5a21e4514707a71cfa69cc19ae50a78f5d3 diff --git a/http_send_api.c b/http_send_api.c index ae7bc49..ef8bf2d 100644 --- a/http_send_api.c +++ b/http_send_api.c @@ -18,7 +18,6 @@ #include "php_http.h" #include "php_streams.h" -#include "ext/standard/php_lcg.h" #include "php_http_api.h" #include "php_http_cache_api.h" @@ -420,7 +419,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);