diff options
author | Dan Winship <danw@gnome.org> | 2012-12-28 10:41:20 -0500 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-12-28 11:26:46 -0500 |
commit | 2357f3501718967003914da4f1f7659b6593aa0d (patch) | |
tree | 28b53fc12a6cfec15f65b586ab7935819ca5958a /tests/proxy-test.c | |
parent | ddfbe30e04c8a9a8981d43b21c27b8bd8336e85b (diff) | |
download | libsoup-2357f3501718967003914da4f1f7659b6593aa0d.tar.gz |
Revert the mirroring of SoupMessage API onto SoupRequestHTTP.
SoupMessage isn't being deprecated, and mirroring its API onto
SoupRequestHTTP is just going to result in always having to add every
new API twice. Also, it turns out to be less useful than originally
expected anyway, since you end up having to cast between SoupRequest
and SoupRequestHTTP frequently anyway.
This reverts commit d7117329400e47d2187ed033099d921d555f8d71 and most of
commit 53c270d0e2868fa5ad48ce864f10a9486b11a071.
Diffstat (limited to 'tests/proxy-test.c')
-rw-r--r-- | tests/proxy-test.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/proxy-test.c b/tests/proxy-test.c index 3466c569..048acfa7 100644 --- a/tests/proxy-test.c +++ b/tests/proxy-test.c @@ -131,8 +131,8 @@ test_url_new_api (const char *url, int proxy, guint expected, { SoupSession *session; SoupURI *proxy_uri; + SoupMessage *msg; SoupRequest *request; - SoupRequestHTTP *http; GInputStream *stream; GError *error = NULL; @@ -162,6 +162,7 @@ test_url_new_api (const char *url, int proxy, guint expected, } request = soup_session_request (session, url, NULL); + msg = soup_request_http_get_message (SOUP_REQUEST_HTTP (request)); stream = soup_test_request_send (request, NULL, &error); if (!stream) { @@ -182,13 +183,13 @@ test_url_new_api (const char *url, int proxy, guint expected, g_object_unref (stream); } - http = SOUP_REQUEST_HTTP (request); - debug_printf (1, " %d %s\n", http->status_code, http->reason_phrase); - if (http->status_code != expected) { + debug_printf (1, " %d %s\n", msg->status_code, msg->reason_phrase); + if (msg->status_code != expected) { debug_printf (1, " EXPECTED %d!\n", expected); errors++; } + g_object_unref (msg); g_object_unref (request); soup_test_session_abort_unref (session); |