You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Ivan Zhakov <iv...@visualsvn.com> on 2010/06/12 16:08:03 UTC
apr_uri_parse and apr_uri_unparse are not symmetric
Hi,
I've found that apr_uri_parse() and apr_uri_unparse() functions are
not symmetric. For example:
[[
apr_uri_parse(pool, "http://host:80", &uri);
apr_uri_unparse(pool, &uri, 0)
]]
The last call returns "http://host" instead of "http://host:80". From
my point of view apr_uri_unparse() should return the same string that
was passed to apr_uri_parse().
Is it intentional behavior behavior or just a bug?
--
Ivan Zhakov
VisualSVN Team