]> granicus.if.org Git - apache/commitdiff
Translate locally generated "100-Continue" message to
authorEric Covener <covener@apache.org>
Thu, 8 Jan 2009 21:40:59 +0000 (21:40 +0000)
committerEric Covener <covener@apache.org>
Thu, 8 Jan 2009 21:40:59 +0000 (21:40 +0000)
ASCII on EBCDIC systems.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@732832 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/http/http_filters.c

diff --git a/CHANGES b/CHANGES
index 2186c26a7ac40f23c40acd3068d642e659c22920..80ea7b132523a9181e6481ca0259ea1abd6a61ff 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,9 @@
 Changes with Apache 2.3.2
 [ When backported to 2.2.x, remove entry from this file ]
 
+ *) core: Translate locally generated "100-Continue" message to
+    ASCII on EBCDIC systems.  [Eric Covener]
+
  *) prefork: Fix child process hang during graceful restart/stop in
     configurations with multiple listening sockets.  PR 42829.  [Joe Orton,
     Jeff Trawick]
index b36fa563f28870cd25ad3e923012d31ed74171b2..b42b47fb69a629bf4985a036daad0132bea34fcb 100644 (file)
@@ -328,11 +328,14 @@ apr_status_t ap_http_filter(ap_filter_t *f, apr_bucket_brigade *b,
                 ctx->eos_sent = 1;
             } else {
                 char *tmp;
+                int len;
 
                 tmp = apr_pstrcat(f->r->pool, AP_SERVER_PROTOCOL, " ",
                                   ap_get_status_line(100), CRLF CRLF, NULL);
+                len = strlen(tmp);
+                ap_xlate_proto_to_ascii(tmp, len);
                 apr_brigade_cleanup(bb);
-                e = apr_bucket_pool_create(tmp, strlen(tmp), f->r->pool,
+                e = apr_bucket_pool_create(tmp, len, f->r->pool,
                                            f->c->bucket_alloc);
                 APR_BRIGADE_INSERT_HEAD(bb, e);
                 e = apr_bucket_flush_create(f->c->bucket_alloc);