X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=php_http_info.c;fp=php_http_info.c;h=2f1b746fa95d185db515896b87c6ef2c2532133b;hp=10ea0a3c0ad7a114bb58ec3a78de6563115633d4;hb=a4114b0ea5757190fdd7218dbf23588b6ae6e9a8;hpb=baff99d75b56868714f7f2ed1972b3baceb72014 diff --git a/php_http_info.c b/php_http_info.c index 10ea0a3..2f1b746 100644 --- 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) { - 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;