- simplify http_send_header API
[m6w6/ext-http] / http.c
diff --git a/http.c b/http.c
index 0acb05c33c85462ddcbc9e1b9214626082f185d4..548c39158bf64d901389b0620d808ab26d089287 100644 (file)
--- a/http.c
+++ b/http.c
@@ -200,7 +200,7 @@ PHP_MINIT_FUNCTION(http)
        REGISTER_INI_ENTRIES();
 
 #ifdef HTTP_HAVE_CURL
-       if (SUCCESS != http_request_global_init()) {
+       if (CURLE_OK != curl_global_init(CURL_GLOBAL_ALL)) {
                return FAILURE;
        }
 #endif /* HTTP_HAVE_CURL */