summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-12-10 22:20:59 +0100
committerDan Winship <danw@gnome.org>2012-12-10 22:20:59 +0100
commit93c0b8808b9cfa4cbcf3ef014385016ed8bd5038 (patch)
treef4588fe986c38b46d010728b8b2e5b937888a9cf /tests
parent64272f77902c91145f6dcbaad5919791b4bc7e36 (diff)
downloadlibsoup-93c0b8808b9cfa4cbcf3ef014385016ed8bd5038.tar.gz
libsoup-93c0b8808b9cfa4cbcf3ef014385016ed8bd5038.tar.bz2
libsoup-93c0b8808b9cfa4cbcf3ef014385016ed8bd5038.zip
soup-uri: don't decode %00 in URIs
We were accidentally decoding %00 to '\0' in URIs, causing a few WebKit tests to fail. Leave it undecoded instead.
Diffstat (limited to 'tests')
-rw-r--r--tests/uri-parsing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/uri-parsing.c b/tests/uri-parsing.c
index 166a6d87..892ee2b9 100644
--- a/tests/uri-parsing.c
+++ b/tests/uri-parsing.c
@@ -125,6 +125,9 @@ static struct {
{ "http", "", NULL, "host", 80, "/", NULL, NULL } },
{ "http://:@host", "http://@host/",
{ "http", "", "", "host", 80, "/", NULL, NULL } },
+
+ { "http://host/keep%00nuls", "http://host/keep%00nuls",
+ { "http", NULL, NULL, "host", 80, "/keep%00nuls", NULL, NULL } },
};
static int num_abs_tests = G_N_ELEMENTS(abs_tests);