summaryrefslogtreecommitdiff
path: root/libsoup/soup-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsoup/soup-session.c')
-rw-r--r--libsoup/soup-session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index fa66fd73..5e4151b8 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -860,7 +860,8 @@ redirect_handler (SoupMessage *msg, gpointer user_data)
const char *new_loc;
SoupURI *new_uri;
- new_loc = soup_message_headers_get (msg->response_headers, "Location");
+ new_loc = soup_message_headers_get_one (msg->response_headers,
+ "Location");
g_return_if_fail (new_loc != NULL);
if (msg->status_code == SOUP_STATUS_SEE_OTHER ||