summaryrefslogtreecommitdiff
path: root/tests/proxy-test.c
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2020-10-28 12:52:49 -0500
committerPatrick Griffis <pgriffis@igalia.com>2020-10-28 12:52:49 -0500
commit0120f183ca2b74abeee8439f73abc8ab504fbccf (patch)
tree56e8b1b7a34956628ca21ed44668504d994f0b39 /tests/proxy-test.c
parent12ee21b08b58d347a11f01180e4f96f4ba3fa9ba (diff)
downloadlibsoup-0120f183ca2b74abeee8439f73abc8ab504fbccf.tar.gz
Make SoupMessage a private and final type
Diffstat (limited to 'tests/proxy-test.c')
-rw-r--r--tests/proxy-test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/proxy-test.c b/tests/proxy-test.c
index 2992c000..57a2e95f 100644
--- a/tests/proxy-test.c
+++ b/tests/proxy-test.c
@@ -84,8 +84,8 @@ set_close_on_connect (SoupMessage *msg,
* the connection when returning a 407 in response to a
* CONNECT. (Rude!)
*/
- if (msg->method == SOUP_METHOD_CONNECT) {
- soup_message_headers_append (msg->request_headers,
+ if (soup_message_get_method (msg) == SOUP_METHOD_CONNECT) {
+ soup_message_headers_append (soup_message_get_request_headers (msg),
"Connection", "close");
}
}
@@ -130,7 +130,7 @@ test_url (const char *url, int proxy, guint expected, gboolean close)
soup_test_session_send_message (session, msg);
- debug_printf (1, " %d %s\n", msg->status_code, msg->reason_phrase);
+ debug_printf (1, " %d %s\n", soup_message_get_status (msg), soup_message_get_reason_phrase (msg));
soup_test_assert_message_status (msg, expected);
g_object_unref (msg);
@@ -243,7 +243,7 @@ do_proxy_redirect_test (void)
req_uri = soup_uri_new (HTTPS_SERVER);
soup_uri_set_path (req_uri, "/redirected");
msg = soup_message_new_from_uri (SOUP_METHOD_GET, req_uri);
- soup_message_headers_append (msg->request_headers,
+ soup_message_headers_append (soup_message_get_request_headers (msg),
"Connection", "close");
soup_test_session_send_message (session, msg);
@@ -290,7 +290,7 @@ do_proxy_auth_request (const char *url, SoupSession *session, gboolean do_read)
g_clear_error (&error);
g_object_unref (stream);
- debug_printf (1, " %d %s\n", msg->status_code, msg->reason_phrase);
+ debug_printf (1, " %d %s\n", soup_message_get_status (msg), soup_message_get_reason_phrase (msg));
soup_test_assert_message_status (msg, SOUP_STATUS_OK);
g_object_unref (msg);