fix uninitialized value
[m6w6/ext-http] / php_http_request.h
index 9e314caec9b87c8866900d617cab5bb7d6ff8bc1..a81199e62854f282b50ba9697b39a6bf29ace8bb 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef PHP_HTTP_REQUEST_H
 #define PHP_HTTP_REQUEST_H
 
+#include <curl/curl.h>
+
 #include "php_http_request_method.h"
 #include "php_http_request_pool.h"
 
@@ -39,13 +41,14 @@ typedef struct php_http_request {
        struct {
                php_http_message_parser_t *ctx;
                php_http_message_t *msg;
-               php_http_buffer *buf;
+               php_http_buffer_t *buf;
        } parser;
        
        struct {
-               php_http_buffer cookies;
+               php_http_buffer_t cookies;
                HashTable options;
                struct curl_slist *headers;
+               long redirects;
        } _cache;
        
        struct {