From a6eda9569faa8f26eda4c72a32a128a4931a21dc Mon Sep 17 00:00:00 2001 From: lukem Date: Sun, 27 Aug 2000 06:39:25 +0000 Subject: [PATCH] It appears that whilst Apache 1.3.9 incorrectly puts a trailing space after the chunksize (before the \r\n), Apache 1.3.11 puts *multiple* trailing spaces after the chunksize. I 'm fairly certain that this is contrary to RFC 2068 section 3.6, but whatever... Found by David Brownlee --- usr.bin/ftp/fetch.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/usr.bin/ftp/fetch.c b/usr.bin/ftp/fetch.c index 778519451d65..0179035d16f8 100644 --- a/usr.bin/ftp/fetch.c +++ b/usr.bin/ftp/fetch.c @@ -1,4 +1,4 @@ -/* $NetBSD: fetch.c,v 1.122 2000/08/06 08:51:22 lukem Exp $ */ +/* $NetBSD: fetch.c,v 1.123 2000/08/27 06:39:25 lukem Exp $ */ /*- * Copyright (c) 1997-2000 The NetBSD Foundation, Inc. @@ -41,7 +41,7 @@ #include #ifndef lint -__RCSID("$NetBSD: fetch.c,v 1.122 2000/08/06 08:51:22 lukem Exp $"); +__RCSID("$NetBSD: fetch.c,v 1.123 2000/08/27 06:39:25 lukem Exp $"); #endif /* not lint */ /* @@ -1090,11 +1090,11 @@ fetch_url(const char *url, const char *proxyenv, char *proxyauth, char *wwwauth) chunksize = strtol(xferbuf, &ep, 16); /* - * XXX: Work around bug in Apache 1.3.9, which - * incorrectly puts a trailing space after - * the chunksize. + * XXX: Work around bug in Apache 1.3.9 and + * 1.3.11, which incorrectly put trailing + * space after the chunksize. */ - if (*ep == ' ') + while (*ep == ' ') ep++; if (strcmp(ep, "\r\n") != 0) {