X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_send_api.c;h=1a7765282ee8afa88a302f87040b5eddf19da48b;hb=3fcfaba41748c3fd452e84ba6da6ea2d91f28e5e;hp=10b02f69663095feb7a7576edae547274cb99d44;hpb=2f39230d83bdf816dcae52c7e5a1b019347f0e7b;p=m6w6%2Fext-http diff --git a/http_send_api.c b/http_send_api.c index 10b02f6..1a77652 100644 --- a/http_send_api.c +++ b/http_send_api.c @@ -366,7 +366,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, lenof(boundary_str), "%lu%0.9f", (ulong) HTTP_GET_REQUEST_TIME(), (float) php_combined_lcg(TSRMLS_C)); + boundary_len = snprintf(boundary_str, lenof(boundary_str), "%lu%0.9f", (ulong) HTTP_G->request.time, (float) php_combined_lcg(TSRMLS_C)); range_header_len = snprintf(range_header_str, lenof(range_header_str), "Content-Type: multipart/byteranges; boundary=%s", boundary_str); http_send_status_header_ex(206, range_header_str, range_header_len, 1);