From e33443256ee0147f70b4af1e3e8b638d36432093 Mon Sep 17 00:00:00 2001 From: Nick Kew Date: Mon, 10 Sep 2007 13:17:25 +0000 Subject: [PATCH] Don't send spurious "100 Continue" response lines. PR 38014 [Basant Kumar Kukreja] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@574240 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES | 3 +++ modules/http/http_filters.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 07fd67a7ef6..01ac0bdcb09 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,9 @@ Changes with Apache 2.3.0 [ When backported to 2.2.x, remove entry from this file ] + *) Don't send spurious "100 Continue" response lines. + PR 38014 [Basant Kumar Kukreja ] + *) mod_proxy_ftp: Don't segfault on bad line in FTP listing PR 40733 [Ulf Harnhammar ] diff --git a/modules/http/http_filters.c b/modules/http/http_filters.c index cee5d70cf80..35c6c429ac2 100644 --- a/modules/http/http_filters.c +++ b/modules/http/http_filters.c @@ -186,7 +186,8 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b, * Only valid on chunked and C-L bodies where the C-L is > 0. */ if ((ctx->state == BODY_CHUNK || (ctx->state == BODY_LENGTH && ctx->remaining > 0)) && - f->r->expecting_100 && f->r->proto_num >= HTTP_VERSION(1,1)) { + f->r->expecting_100 && f->r->proto_num >= HTTP_VERSION(1,1) && + !(f->r->eos_sent || f->r->bytes_sent)) { char *tmp; apr_bucket_brigade *bb; -- 2.47.2