diff options
author | Dan Winship <danw@gnome.org> | 2012-07-14 09:24:29 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2012-12-10 17:14:57 +0100 |
commit | fea7925589f6b768252b07c9df8f44ee70bca032 (patch) | |
tree | e2e8c3ce66d3cf5c137dccb499d4d8f922e116f1 /libsoup/soup-message-io.c | |
parent | e00cf242322f82f0800956b17d726f0437db683a (diff) | |
download | libsoup-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.c | 2 |
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) { |