about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--CHANGES8
-rw-r--r--WWW/Library/Implementation/HTFormat.c4
2 files changed, 7 insertions, 5 deletions
diff --git a/CHANGES b/CHANGES
index 8f4301f1..928fbeb2 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,12 +1,14 @@
--- $LynxId: CHANGES,v 1.656 2013/10/01 22:01:16 tom Exp $
+-- $LynxId: CHANGES,v 1.657 2013/10/01 23:46:43 tom Exp $
 ===============================================================================
 Changes since Lynx 2.8 release
 ===============================================================================
 
 2013-10-01 (2.8.8dev.17)
+* minor change to Content-Length logic from 2.8.8dev.13 to work with Amazon's
+  cookies (Debian #720541) -TD
 * improve warning message for GNUTLS_CERT_SIGNER_NOT_FOUND (Debian #695653) -TD
-* ignore non-fatal return codes from gnutls_handshake (Debian #724812,
-  patch by Hans Wurst).
+* ignore non-fatal return codes from gnutls_handshake introduced by SNI change
+  in 2.8.8dev.15 (Debian #724812, patch by Hans Wurst).
 * updates for configure macros -TD
   + CF_ACVERSION_CHECK, fix from byacc for "newer" autoconf.
   + CF_ADD_LIB_AFTER, fix from xterm for problem with -Wl,xxx options
diff --git a/WWW/Library/Implementation/HTFormat.c b/WWW/Library/Implementation/HTFormat.c
index bb75ba4b..94a7bfd7 100644
--- a/WWW/Library/Implementation/HTFormat.c
+++ b/WWW/Library/Implementation/HTFormat.c
@@ -1,5 +1,5 @@
 /*
- * $LynxId: HTFormat.c,v 1.80 2013/05/05 20:19:02 tom Exp $
+ * $LynxId: HTFormat.c,v 1.81 2013/10/01 23:43:39 tom Exp $
  *
  *		Manage different file formats			HTFormat.c
  *		=============================
@@ -870,7 +870,7 @@ int HTCopy(HTParentAnchor *anchor,
 #endif /* NOT_ASCII */
 
 	total = bytes + status;
-	if (limit == 0 || (total < limit)) {
+	if (limit == 0 || bytes == 0 || (total < limit)) {
 	    (*targetClass.put_block) (sink, input_buffer, status);
 	} else if (bytes < limit) {
 	    (*targetClass.put_block) (sink, input_buffer, (int) (limit - bytes));