1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-30 03:26:23 -04:00

bug 974: Fixed.

This commit is contained in:
Witold Filipczyk 2007-11-03 14:43:45 +01:00 committed by Witold Filipczyk
parent dfceeaf99b
commit 5c3adcadff

View File

@ -1309,7 +1309,7 @@ read_normal_http_data(struct connection *conn, struct read_buffer *rb)
kill_buffer_data(rb, len); kill_buffer_data(rb, len);
if (!http->length && conn->socket->state == SOCKET_RETRY_ONCLOSE) { if (!http->length) {
return 2; return 2;
} }
@ -1324,7 +1324,7 @@ read_http_data(struct socket *socket, struct read_buffer *rb)
int ret; int ret;
if (socket->state == SOCKET_CLOSED) { if (socket->state == SOCKET_CLOSED) {
if (conn->content_encoding && http->length == -1) { if (conn->content_encoding) {
/* Flush decompression first. */ /* Flush decompression first. */
http->length = 0; http->length = 0;
} else { } else {
@ -1889,8 +1889,7 @@ again:
conn->cached->encoding_info = stracpy(get_encoding_name(conn->content_encoding)); conn->cached->encoding_info = stracpy(get_encoding_name(conn->content_encoding));
} }
if (http->length == -1 if (http->close)
|| (PRE_HTTP_1_1(http->recv_version) && http->close))
socket->state = SOCKET_END_ONCLOSE; socket->state = SOCKET_END_ONCLOSE;
read_http_data(socket, rb); read_http_data(socket, rb);