cvs: pecl /http http_headers_api.c
| From: | Michael Wallner | Date: | Mon, 11 Apr 2005 06:51:55 +0000 |
| Subject: | cvs: pecl /http http_headers_api.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-2963@lists.php.net to get a copy of this message | ||
mike Mon Apr 11 02:51:55 2005 EDT
Modified files:
/pecl/http http_headers_api.c
Log:
- missing includes
http://cvs.php.net/diff.php/pecl/http/http_headers_api.c?r1=1.1&r2=1.2&ty=u
Index: pecl/http/http_headers_api.c
diff -u pecl/http/http_headers_api.c:1.1 pecl/http/http_headers_api.c:1.2
--- pecl/http/http_headers_api.c:1.1 Sun Apr 10 11:58:29 2005
+++ pecl/http/http_headers_api.c Mon Apr 11 02:51:55 2005
@@ -13,7 +13,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: http_headers_api.c,v 1.1 2005/04/10 15:58:29 mike Exp $ */
+/* $Id: http_headers_api.c,v 1.2 2005/04/11 06:51:55 mike Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -22,6 +22,8 @@
#include <ctype.h>
#include "php.h"
+#include "ext/standard/php_string.h"
+#include "ext/standard/url.h"
#include "php_http.h"
#include "php_http_std_defs.h"
@@ -254,7 +256,7 @@
char *end = strstr(header, HTTP_CRLF);
size_t len = end - (header + lenof("HTTP/1.x "));
char *val = estrndup(header + lenof("HTTP/1.x "), len);
-
+
add_assoc_stringl(&array, "Status", val, len, 0);
header = end + 2;
}