diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-05-05 23:35:44 -0400 |
---|---|---|
committer | Jens Georg <mail@jensge.org> | 2014-05-24 21:00:24 +0200 |
commit | 9f02229ad7322a4c5b285b393e06ddc54b56ad8c (patch) | |
tree | 5b0c026668225d4a485820a92132d435f16a90c9 /tests | |
parent | 57a6a083e7857fee0d91c28370856bcc64789d20 (diff) | |
download | gssdp-9f02229ad7322a4c5b285b393e06ddc54b56ad8c.tar.gz |
Add support for additionnal vendor specific headers in messages
Add new API to GSSDPClient to add custom headers to every message
sent. It allows support for applications that need non-standard
headers.
https://bugzilla.gnome.org/show_bug.cgi?id=729613
Diffstat (limited to 'tests')
-rw-r--r-- | tests/gtest/test-functional.c | 4 | ||||
-rw-r--r-- | tests/gtest/test-regression.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/gtest/test-functional.c b/tests/gtest/test-functional.c index 243caee..d1fd3ff 100644 --- a/tests/gtest/test-functional.c +++ b/tests/gtest/test-functional.c @@ -71,7 +71,7 @@ create_alive_message (const char *nt) else usn = g_strconcat (UUID_1, "::", nt, NULL); - msg = g_strdup_printf (SSDP_ALIVE_MESSAGE, + msg = g_strdup_printf (SSDP_ALIVE_MESSAGE "\r\n", 1800, "http://127.0.0.1:1234", "", @@ -93,7 +93,7 @@ create_byebye_message (const char *nt) else usn = g_strconcat (UUID_1, "::", nt, NULL); - msg = g_strdup_printf (SSDP_BYEBYE_MESSAGE, nt, usn); + msg = g_strdup_printf (SSDP_BYEBYE_MESSAGE "\r\n", nt, usn); g_free (usn); return msg; diff --git a/tests/gtest/test-regression.c b/tests/gtest/test-regression.c index aabba51..01a984a 100644 --- a/tests/gtest/test-regression.c +++ b/tests/gtest/test-regression.c @@ -71,7 +71,7 @@ create_alive_message (const char *nt, int max_life) else usn = g_strconcat (UUID_1, "::", nt, NULL); - msg = g_strdup_printf (SSDP_ALIVE_MESSAGE, + msg = g_strdup_printf (SSDP_ALIVE_MESSAGE "\r\n", max_life, "http://127.0.0.1:1234", "", @@ -268,7 +268,7 @@ create_alive_message_bgo724030 (const char *location) { char *msg; - msg = g_strdup_printf (SSDP_ALIVE_MESSAGE, + msg = g_strdup_printf (SSDP_ALIVE_MESSAGE "\r\n", 5, location, "", |