projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
0ac32c9
)
- missing includes
author
Michael Wallner
<mike@php.net>
Mon, 11 Apr 2005 06:51:55 +0000
(06:51 +0000)
committer
Michael Wallner
<mike@php.net>
Mon, 11 Apr 2005 06:51:55 +0000
(06:51 +0000)
http_headers_api.c
patch
|
blob
|
history
diff --git
a/http_headers_api.c
b/http_headers_api.c
index f820a1355891f7d2c7d45f0c836f3bfda9547187..930c496f732ef14336c896ac6c6db064a5cdab22 100644
(file)
--- a/
http_headers_api.c
+++ b/
http_headers_api.c
@@
-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
@@
PHP_HTTP_API STATUS _http_parse_headers_ex(const char *header, size_t header_len
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;
}