SoupURI: fix fallback handling of soup_uri_set_path(uri, NULL)
authorDan Winship <danw@gnome.org>
Sat, 25 Feb 2012 13:54:58 +0000 (08:54 -0500)
committerDan Winship <danw@gnome.org>
Sat, 25 Feb 2012 13:54:58 +0000 (08:54 -0500)
commit5dc4d7af3cb8c2d3ba805ee7b87022faf19a794f
treeca94f76a1818590088323c3a7b5edfb69e6749a3
parentcf377b1b6d6a0e9d5b622d48b0617a9416ea574e
SoupURI: fix fallback handling of soup_uri_set_path(uri, NULL)

In the old code, if you set a URI's path to NULL and then did
soup_uri_to_string(uri, FALSE), you'd get back a path of "/". Fix the
new code to behave the same way (and test it).

https://bugzilla.gnome.org/show_bug.cgi?id=670431
libsoup/soup-uri.c
tests/uri-parsing.c