[libsoup/giobased: 6/11] sis fixes 2



commit 0cf02d4fa341a3d0fc3f24ada55982f1bc8fb193
Author: Dan Winship <danw gnome org>
Date:   Thu Dec 9 19:09:27 2010 +0100

    sis fixes 2

 libsoup/soup-message-io.c |   18 ------------------
 1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/libsoup/soup-message-io.c b/libsoup/soup-message-io.c
index 39b6856..4d66329 100644
--- a/libsoup/soup-message-io.c
+++ b/libsoup/soup-message-io.c
@@ -340,24 +340,6 @@ read_metadata (SoupMessage *msg, gboolean to_blank)
 		if (nread > 0) {
 			g_byte_array_append (io->read_meta_buf, read_buf, nread);
 			got_lf = memchr (read_buf, '\n', nread) != NULL;
-		} else if (nread == 0) {
-			/* More lame server handling... deal with
-			 * servers that don't send the final chunk.
-			 */
-			if (io->read_state == SOUP_MESSAGE_IO_STATE_CHUNK_SIZE &&
-			    io->read_meta_buf->len == 0) {
-				g_byte_array_append (io->read_meta_buf,
-						     (guchar *)"0\r\n", 3);
-				got_lf = TRUE;
-			} else if (io->read_state == SOUP_MESSAGE_IO_STATE_TRAILERS &&
-				   io->read_meta_buf->len == 0) {
-				g_byte_array_append (io->read_meta_buf,
-						     (guchar *)"\r\n", 2);
-				got_lf = TRUE;
-			} else {
-				io_error (io->sock, msg, NULL);
-				return FALSE;
-			}
 		} else {
 			io_error (io->sock, msg, error);
 			return FALSE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]