X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_client_curl.c;h=c6918426264ea3fa32df358a5f208c2ba14d63b5;hp=4033b9f56c5c0c61a36b19ae4475d5e9edb50f19;hb=a92f3562e87cae473417b4a2c82001ed2a93951d;hpb=d6975fac1d5c88362e9ce625e9b5248e23b3cfb1 diff --git a/php_http_client_curl.c b/php_http_client_curl.c index 4033b9f..c691842 100644 --- a/php_http_client_curl.c +++ b/php_http_client_curl.c @@ -1492,8 +1492,8 @@ static STATUS php_http_client_curl_handler_prepare(php_http_client_curl_handler_ } } php_http_buffer_dtor(&header); - curl_easy_setopt(curl->handle, CURLOPT_HTTPHEADER, curl->options.headers); } + curl_easy_setopt(curl->handle, CURLOPT_HTTPHEADER, curl->options.headers); /* attach request body */ if ((body_size = php_http_message_body_size(msg->body))) {