X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_info.c;fp=src%2Fphp_http_info.c;h=4e43fda8eaa27888c6b72aca907d8e2f5fcf1ac7;hp=9045cd40997d4b23fa5ba97aadd1d6ab5947be4e;hb=c55db20a130d729ca8747346c5e5ab9fb52fd89d;hpb=ab8b481d1e510b8d6cfe3c4c8893f2a83353e7da diff --git a/src/php_http_info.c b/src/php_http_info.c index 9045cd4..4e43fda 100644 --- a/src/php_http_info.c +++ b/src/php_http_info.c @@ -147,9 +147,9 @@ php_http_info_t *php_http_info_parse(php_http_info_t *info, const char *pre_head if (http > url) { /* CONNECT presents an authority only */ if (strcasecmp(PHP_HTTP_INFO(info).request.method, "CONNECT")) { - PHP_HTTP_INFO(info).request.url = php_http_url_parse(url, http - url, ~0); + PHP_HTTP_INFO(info).request.url = php_http_url_parse(url, http - url, PHP_HTTP_URL_STDFLAGS); } else { - PHP_HTTP_INFO(info).request.url = php_http_url_parse_authority(url, http - url, ~0); + PHP_HTTP_INFO(info).request.url = php_http_url_parse_authority(url, http - url, PHP_HTTP_URL_STDFLAGS); } if (!PHP_HTTP_INFO(info).request.url) { PTR_SET(PHP_HTTP_INFO(info).request.method, NULL);