ditch php_url
[m6w6/ext-http] / php_http_info.c
index 10ea0a3c0ad7a114bb58ec3a78de6563115633d4..2f1b746fa95d185db515896b87c6ef2c2532133b 100644 (file)
@@ -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;