Don't send spurious "100 Continue" response lines.
PR 38014 [Basant Kumar Kukreja]
Submitted by: niq
Reviewed by: jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@574950
13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.2.7
+ *) Don't send spurious "100 Continue" response lines.
+ PR 38014 [Basant Kumar Kukreja <basant.kukreja sun.com>]
+
*) mod_proxy_ftp: Don't segfault on bad line in FTP listing
PR 40733 [Ulf Harnhammar <metaur telia.com>]
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * core: Don't send spurious "100 Continue" response lines.
- PR 38014
- http://svn.apache.org/viewvc?view=rev&revision=574240
- +1: niq, rpluem, jim
-
- * mod_proxy_ftp: Don't segfault on bad line in FTP listing
- PR 40733
- http://svn.apache.org/viewvc?view=rev&revision=574100
- +1: niq, rpluem, jim
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
* 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;