summaryrefslogtreecommitdiff
path: root/libsoup/soup-message-io.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-07-14 09:24:29 -0400
committerDan Winship <danw@gnome.org>2012-12-10 17:14:57 +0100
commitfea7925589f6b768252b07c9df8f44ee70bca032 (patch)
treee2e8c3ce66d3cf5c137dccb499d4d8f922e116f1 /libsoup/soup-message-io.c
parente00cf242322f82f0800956b17d726f0437db683a (diff)
downloadlibsoup-fea7925589f6b768252b07c9df8f44ee70bca032.tar.gz
SoupRequest: Return better GErrors on parsing failures
In cases where the SoupMessage API would return SOUP_STATUS_MALFORMED, return a clearer GError in the SoupRequest API.
Diffstat (limited to 'libsoup/soup-message-io.c')
-rw-r--r--libsoup/soup-message-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-message-io.c b/libsoup/soup-message-io.c
index d38d7432..03f8c0a1 100644
--- a/libsoup/soup-message-io.c
+++ b/libsoup/soup-message-io.c
@@ -503,7 +503,7 @@ io_read (SoupMessage *msg, GCancellable *cancellable, GError **error)
status = io->parse_headers_cb (msg, (char *)io->read_header_buf->data,
io->read_header_buf->len,
&io->read_encoding,
- io->header_data);
+ io->header_data, error);
g_byte_array_set_size (io->read_header_buf, 0);
if (status != SOUP_STATUS_OK) {