summaryrefslogtreecommitdiff
path: root/tests/ntlm-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/ntlm-test.c
parentd11e8bfa3cd300ca96d5387610a217b0aca87350 (diff)
downloadlibsoup-7033879bcff9a7b1c31c086ed020fc8fa03fcd81.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/ntlm-test.c')
-rw-r--r--tests/ntlm-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ntlm-test.c b/tests/ntlm-test.c
index a40ebd37..3f6366ad 100644
--- a/tests/ntlm-test.c
+++ b/tests/ntlm-test.c
@@ -350,7 +350,7 @@ do_message (SoupSession *session,
g_signal_connect (msg, "wrote-headers",
G_CALLBACK (response_check), &state);
- body = soup_test_session_send (session, msg, NULL, NULL);
+ body = soup_session_send_and_read (session, msg, NULL, NULL);
debug_printf (1, " %-10s -> ", path);
if (state.got_ntlm_prompt) {
@@ -681,7 +681,7 @@ do_retrying_test (TestServer *ts,
G_CALLBACK (retry_test_authenticate), &retried);
g_uri_unref (uri);
- body = soup_test_session_send (session, msg, NULL, NULL);
+ body = soup_session_send_and_read (session, msg, NULL, NULL);
g_assert_true (retried);
soup_test_assert_message_status (msg, SOUP_STATUS_OK);
@@ -703,7 +703,7 @@ do_retrying_test (TestServer *ts,
G_CALLBACK (retry_test_authenticate), &retried);
g_uri_unref (uri);
- body = soup_test_session_send (session, msg, NULL, NULL);
+ body = soup_session_send_and_read (session, msg, NULL, NULL);
g_assert_true (retried);
soup_test_assert_message_status (msg, SOUP_STATUS_UNAUTHORIZED);