From 5c3adcadffd3c2ea395b90d17e1230d36cf54802 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 3 Nov 2007 14:43:45 +0100 Subject: [PATCH] bug 974: Fixed. --- src/protocol/http/http.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/protocol/http/http.c b/src/protocol/http/http.c index 6f7c3fb0..714051a9 100644 --- a/src/protocol/http/http.c +++ b/src/protocol/http/http.c @@ -1309,7 +1309,7 @@ read_normal_http_data(struct connection *conn, struct read_buffer *rb) kill_buffer_data(rb, len); - if (!http->length && conn->socket->state == SOCKET_RETRY_ONCLOSE) { + if (!http->length) { return 2; } @@ -1324,7 +1324,7 @@ read_http_data(struct socket *socket, struct read_buffer *rb) int ret; if (socket->state == SOCKET_CLOSED) { - if (conn->content_encoding && http->length == -1) { + if (conn->content_encoding) { /* Flush decompression first. */ http->length = 0; } else { @@ -1889,8 +1889,7 @@ again: conn->cached->encoding_info = stracpy(get_encoding_name(conn->content_encoding)); } - if (http->length == -1 - || (PRE_HTTP_1_1(http->recv_version) && http->close)) + if (http->close) socket->state = SOCKET_END_ONCLOSE; read_http_data(socket, rb);