From: Jeff Trawick Date: Thu, 20 Nov 2003 19:52:42 +0000 (+0000) Subject: merge this from 2.1-dev: X-Git-Tag: 2.0.49~366 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c79d8d1886d3c2a242edebdd32347c941d78f93;p=thirdparty%2Fapache%2Fhttpd.git merge this from 2.1-dev: EBCDIC: Convert header fields to ASCII before sending (broken since 2.0.44). Submitted by: Martin Kraemer Reviewed by: trawick, nd, gregames git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@101818 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 000ca58fd51..fff2770686d 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,8 @@ Changes with Apache 2.0.49 + *) EBCDIC: Convert header fields to ASCII before sending (broken + since 2.0.44). [Martin Kraemer] + *) Fix the inability to log errors like exec failure in mod_ext_filter/mod_cgi script children. This was broken after such children stopped inheriting the error log handle. diff --git a/STATUS b/STATUS index 615c18ac18a..a8e46bee634 100644 --- a/STATUS +++ b/STATUS @@ -1,5 +1,5 @@ APACHE 2.0 STATUS: -*-text-*- -Last modified at [$Date: 2003/11/20 19:42:30 $] +Last modified at [$Date: 2003/11/20 19:52:41 $] Release: @@ -62,10 +62,6 @@ Contributors looking for a mission: RELEASE SHOWSTOPPERS: - * EBCDIC: Translate the protocol data... - modules/http/http_protocol.c: r1.469, r1.472 - +1: trawick, nd, gregames - PATCHES TO BACKPORT FROM 2.1 [ please place file names and revisions from HEAD here, so it is easy to identify exactly what the proposed changes are! ] diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index e80c531eaf4..43936fbfb34 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -1196,7 +1196,16 @@ static apr_status_t send_all_header_fields(header_struct *h, t_elt++; } while (t_elt < t_end); +#if APR_CHARSET_EBCDIC + { + apr_size_t len; + char *tmp = apr_pstrcatv(r->pool, vec, vec_next - vec, &len); + ap_xlate_proto_to_ascii(tmp, len); + return apr_brigade_write(h->bb, NULL, NULL, tmp, len); + } +#else return apr_brigade_writev(h->bb, NULL, NULL, vec, vec_next - vec); +#endif } /*