X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_request_api.c;h=2a4884ad9d2660f9419544464bae63a127d1dc16;hb=2acce3eb2d1815e2882608da632c3fd5614b389c;hp=f82b0a7f4664160f928cb7c1a82b33d77250128b;hpb=559c156f3d0aeffe2c920d9275f47cfcdfc40bdf;p=m6w6%2Fext-http diff --git a/http_request_api.c b/http_request_api.c index f82b0a7..2a4884a 100644 --- a/http_request_api.c +++ b/http_request_api.c @@ -334,8 +334,9 @@ PHP_HTTP_API STATUS _http_request_init(CURL *ch, http_request_method meth, const } if (response) { - HTTP_CURL_OPT(WRITEDATA, http_curl_callback_data(response)); - HTTP_CURL_OPT(WRITEHEADER, http_curl_callback_data(response)); + http_curl_callback_ctx *response_ctx = http_curl_callback_data(response); + HTTP_CURL_OPT(WRITEDATA, response_ctx); + HTTP_CURL_OPT(WRITEHEADER, response_ctx); } HTTP_CURL_OPT(HEADER, 0);