summaryrefslogtreecommitdiff
path: root/tests/hsts-db-test.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2021-03-03 15:06:13 +0100
committerCarlos Garcia Campos <cgarcia@igalia.com>2021-03-03 15:31:28 +0100
commit7033879bcff9a7b1c31c086ed020fc8fa03fcd81 (patch)
treeb6785cdf862eae326a504c756dbd93d25b2dcb03 /tests/hsts-db-test.c
parentd11e8bfa3cd300ca96d5387610a217b0aca87350 (diff)
downloadlibsoup-carlosgc/send_and_read.tar.gz
session: add soup_session_send_and_read APIscarlosgc/send_and_read
This is convenient API to send a message and read its body into a GBytes. This should replace the basic APIs since it covers the same use case, but using a SoupMessage instead of a URI and with ore flexibility.
Diffstat (limited to 'tests/hsts-db-test.c')
-rw-r--r--tests/hsts-db-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/hsts-db-test.c b/tests/hsts-db-test.c
index 8700e12b..1149a044 100644
--- a/tests/hsts-db-test.c
+++ b/tests/hsts-db-test.c
@@ -80,7 +80,7 @@ session_get_uri (SoupSession *session,
msg = soup_message_new ("GET", uri);
g_signal_connect (msg, "hsts-enforced", G_CALLBACK (hsts_enforced_cb), &enforced);
soup_message_add_flags (msg, SOUP_MESSAGE_NO_REDIRECT);
- body = soup_test_session_send (session, msg, NULL, &error);
+ body = soup_session_send_and_read (session, msg, NULL, &error);
if (expected_status == SOUP_STATUS_NONE)
g_assert_error (error, G_TLS_ERROR, G_TLS_ERROR_BAD_CERTIFICATE);
else