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, 1 insertions, 2 deletions
diff --git a/libsoup/soup-session.c b/libsoup/soup-session.c
index c674cbfe..ce7dc713 100644
--- a/libsoup/soup-session.c
+++ b/libsoup/soup-session.c
@@ -904,8 +904,7 @@ soup_session_redirect_message (SoupSession *session, SoupMessage *msg)
SOUP_MESSAGE_METHOD, SOUP_METHOD_GET,
NULL);
}
- soup_message_set_request (msg, NULL,
- SOUP_MEMORY_STATIC, NULL, 0);
+ soup_message_set_request_body (msg, NULL, NULL, 0);
soup_message_headers_set_encoding (msg->request_headers,
SOUP_ENCODING_NONE);
}