fix uninitialized value
[m6w6/ext-http] / php_http_request.h
index 543271563b215c41fa4cbaaed17add2949c2839d..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"
 
@@ -46,6 +48,7 @@ typedef struct php_http_request {
                php_http_buffer_t cookies;
                HashTable options;
                struct curl_slist *headers;
+               long redirects;
        } _cache;
        
        struct {