make gzip-encoded pages display properly Fix: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NotDashEscaped: You need GnuPG to verify this message ? files/patch-compression cvs server: Diffing . iD8DBQE+Wn62SypIl9OdoOMRAqpzAJ43PmuFd9Ytd/gu2Tju6MNBFM6ZuwCgpnIm okXnhu3psxJIujyvZpH7boo= =MZvf -----END PGP SIGNATURE-------oyy9Qcy39uN2mVuIydtHXKJ56gufxlcmQiQtOrv1KLwIiJ3B Content-Type: text/plain; name="file.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="file.diff" Index: Makefile =================================================================== RCS file: /home/ncvs/ports/www/elinks/Makefile,v retrieving revision 1.25 diff -u -r1.25 Makefile --- Makefile 2003/02/21 14:01:15 1.25 +++ Makefile 2003/02/24 20:16:40 @@ -7,6 +7,7 @@ PORTNAME= elinks PORTVERSION= 0.4.2 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://elinks.or.cz/download/ DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.asc cvs server: Diffing files --- /dev/null Mon Feb 24 15:17:19 2003 +++ files/patch-compression Mon Feb 24 14:52:31 2003 @@ -0,0 +1,44 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 +NotDashEscaped: You need GnuPG to verify this message + + +# copied from: +# http://archive.linuxfromscratch.org/mail-archives/links-list/2003/02/att-0021/01-elinks-openbsd_bug.patch +# http://archive.linuxfromscratch.org/mail-archives/links-list/2003/02/0021.html + +--- src/protocol/http/http.c.orig Sun Feb 9 02:14:19 2003 ++++ src/protocol/http/http.c Sun Feb 9 02:21:10 2003 +@@ -710,6 +710,8 @@ + } + + do { ++ int init; ++ + if (to_read == PIPE_BUF / 2) { + /* ... we aren't finishing yet. */ + int written = write(conn->stream_pipes[1], data, +@@ -743,12 +745,13 @@ + conn->stream = open_encoded(conn->stream_pipes[0], + conn->content_encoding); + if (!conn->stream) return NULL; +- } ++ else init = 1; ++ } else init = 0; + + output = (unsigned char *) mem_realloc(output, *new_len + to_read); + if (!output) break; + +- did_read = read_encoded(conn->stream, output + *new_len, to_read); ++ did_read = read_encoded(conn->stream, output + *new_len, init ? PIPE_BUF / 4 : to_read); + if (did_read > 0) *new_len += did_read; + } while (!(!len && did_read != to_read)); + + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.2.1 (FreeBSD) + +iD8DBQE+Wnf/SypIl9OdoOMRAiKLAJ9UoMBFqKp6Z5WQPCpWyyLnZ5js3ACfbalV +mEIH0ioE4rpuE/Tmcu9nj08= +=5S2+ +-----END PGP SIGNATURE----- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) How-To-Repeat: apply patch below
State Changed From-To: open->closed Committed, thanks