projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
ditch php_url
[m6w6/ext-http]
/
php_http_info.c
diff --git
a/php_http_info.c
b/php_http_info.c
index 10ea0a3c0ad7a114bb58ec3a78de6563115633d4..2f1b746fa95d185db515896b87c6ef2c2532133b 100644
(file)
--- a/
php_http_info.c
+++ b/
php_http_info.c
@@
-120,7
+120,7
@@
php_http_info_t *php_http_info_parse(php_http_info_t *info, const char *pre_head
while (' ' == *url) ++url;
while (' ' == *(http-1)) --http;
if (http > url) {
while (' ' == *url) ++url;
while (' ' == *(http-1)) --http;
if (http > url) {
- PHP_HTTP_INFO(info).request.url =
estrndup(url, http - url
);
+ PHP_HTTP_INFO(info).request.url =
php_http_url_parse(url, http - url, ~0 TSRMLS_CC
);
} else {
STR_SET(PHP_HTTP_INFO(info).request.method, NULL);
return NULL;
} else {
STR_SET(PHP_HTTP_INFO(info).request.method, NULL);
return NULL;