summaryrefslogtreecommitdiff
path: root/tests/hsts-db-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hsts-db-test.c')
-rw-r--r--tests/hsts-db-test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hsts-db-test.c b/tests/hsts-db-test.c
index e98914e2..655c6d73 100644
--- a/tests/hsts-db-test.c
+++ b/tests/hsts-db-test.c
@@ -88,9 +88,9 @@ rewrite_message_uri (SoupMessage *msg)
{
GUri *new_uri;
if (soup_uri_is_http (soup_message_get_uri (msg), NULL))
- new_uri = soup_test_uri_set_port (soup_message_get_uri (msg), g_uri_get_port (http_uri));
+ new_uri = soup_uri_copy (soup_message_get_uri (msg), SOUP_URI_PORT, g_uri_get_port (http_uri), SOUP_URI_NONE);
else if (soup_uri_is_https (soup_message_get_uri (msg), NULL))
- new_uri = soup_test_uri_set_port (soup_message_get_uri (msg), g_uri_get_port (https_uri));
+ new_uri = soup_uri_copy (soup_message_get_uri (msg), SOUP_URI_PORT, g_uri_get_port (https_uri), SOUP_URI_NONE);
else
g_assert_not_reached();
soup_message_set_uri (msg, new_uri);