summaryrefslogtreecommitdiff
path: root/libsoup/soup-message-io.c
diff options
context:
space:
mode:
authorPatrick Griffis <pgriffis@igalia.com>2020-02-12 13:59:25 -0800
committerPatrick Griffis <pgriffis@igalia.com>2020-09-19 15:41:24 -0700
commit57b8b2e9cf985ec1b56bed8fb2fecc61ac8d5a5b (patch)
treef1ecfc5752e03cc773bb6bdeedeebec1486f70e6 /libsoup/soup-message-io.c
parentddfb66b49f3cc38f51588aa07236b460bc0bba6f (diff)
downloadlibsoup-57b8b2e9cf985ec1b56bed8fb2fecc61ac8d5a5b.tar.gz
Remove deprecated SoupChunkAllocator APIs
Diffstat (limited to 'libsoup/soup-message-io.c')
-rw-r--r--libsoup/soup-message-io.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/libsoup/soup-message-io.c b/libsoup/soup-message-io.c
index c5412abb..a005fa93 100644
--- a/libsoup/soup-message-io.c
+++ b/libsoup/soup-message-io.c
@@ -752,20 +752,11 @@ io_read (SoupMessage *msg, gboolean blocking,
case SOUP_MESSAGE_IO_STATE_BODY:
- if (soup_message_has_chunk_allocator (msg)) {
- buffer = soup_message_allocate_chunk (msg, io->read_length);
- if (!buffer) {
- g_return_val_if_fail (!io->item || !io->item->new_api, FALSE);
- soup_message_io_pause (msg);
- return FALSE;
- }
- } else {
- if (!stack_buf)
- stack_buf = alloca (RESPONSE_BLOCK_SIZE);
- buffer = soup_buffer_new (SOUP_MEMORY_TEMPORARY,
- stack_buf,
- RESPONSE_BLOCK_SIZE);
- }
+ if (!stack_buf)
+ stack_buf = alloca (RESPONSE_BLOCK_SIZE);
+ buffer = soup_buffer_new (SOUP_MEMORY_TEMPORARY,
+ stack_buf,
+ RESPONSE_BLOCK_SIZE);
nread = g_pollable_stream_read (io->body_istream,
(guchar *)buffer->data,