apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Zhakov <i...@visualsvn.com>
Subject apr_uri_parse and apr_uri_unparse are not symmetric
Date Sat, 12 Jun 2010 14:08:03 GMT
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

Mime
View raw message