Commit 37e480e1 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

torture_sip.c: updated tests (quoting semicolon in query/header part)

darcs-hash:20080326112016-65a35-057d68c1f5223ee0ac9d23f9f2af284e80d5bbd8.gz
parent 3412d6d9
...@@ -281,7 +281,7 @@ int test_url_headers(void) ...@@ -281,7 +281,7 @@ int test_url_headers(void)
TAG_END()); TAG_END());
TEST_1(s); TEST_1(s);
TEST_S(s, "to=%22Joe%22%20%3Csip%3Ajoe@example.com%3E;tag%3Dfoofaa" TEST_S(s, "to=%22Joe%22%20%3Csip%3Ajoe@example.com%3E%3Btag%3Dfoofaa"
"&subject=foo"); "&subject=foo");
url = url_format(home, "sip:test@example.net?%s", s); TEST_1(url); url = url_format(home, "sip:test@example.net?%s", s); TEST_1(url);
...@@ -290,19 +290,19 @@ int test_url_headers(void) ...@@ -290,19 +290,19 @@ int test_url_headers(void)
s = sip_headers_as_url_query s = sip_headers_as_url_query
(home, (home,
SIPTAG_FROM_STR("<sip:joe@example.com>"), SIPTAG_FROM_STR("<sip:joe@example.com;user=ip>"),
SIPTAG_ACCEPT_STR(""), SIPTAG_ACCEPT_STR(""),
SIPTAG_PAYLOAD_STR("hello"), SIPTAG_PAYLOAD_STR("hello"),
SIPTAG_ACCEPT_STR(""), SIPTAG_ACCEPT_STR(""),
TAG_END()); TAG_END());
TEST_S(s, "from=%3Csip%3Ajoe@example.com%3E" TEST_S(s, "from=%3Csip%3Ajoe@example.com%3Buser%3Dip%3E"
"&accept=" "&accept="
"&body=hello" "&body=hello"
"&accept="); "&accept=");
d = url_query_as_header_string(home, s); d = url_query_as_header_string(home, s);
TEST_S(d, "from:<sip:joe@example.com>\n" TEST_S(d, "from:<sip:joe@example.com;user=ip>\n"
"accept:\n" "accept:\n"
"accept:\n" "accept:\n"
"\n" "\n"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment