From: Brian Pane Date: Sun, 12 May 2002 21:50:46 +0000 (+0000) Subject: Faster, simpler code for form_header_field() on ASCII based X-Git-Tag: 2.0.37~426 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=355c623868d11020d6cd79e9d1b8b8cfc7e4442e;p=apache Faster, simpler code for form_header_field() on ASCII based platforms git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95049 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_protocol.c b/modules/http/http_protocol.c index cd56ea46cc..d8799fdbd6 100644 --- a/modules/http/http_protocol.c +++ b/modules/http/http_protocol.c @@ -996,6 +996,7 @@ typedef struct header_struct { static int form_header_field(header_struct *h, const char *fieldname, const char *fieldval) { +#if APR_CHARSET_EBCDIC char *headfield; apr_size_t len; apr_size_t name_len; @@ -1017,6 +1018,12 @@ static int form_header_field(header_struct *h, *next = 0; ap_xlate_proto_to_ascii(headfield, len); apr_brigade_write(h->bb, NULL, NULL, headfield, len); +#else + apr_brigade_puts(h->bb, NULL, NULL, fieldname); + apr_brigade_write(h->bb, NULL, NULL, ": ", sizeof(": ") - 1); + apr_brigade_puts(h->bb, NULL, NULL, fieldval); + apr_brigade_write(h->bb, NULL, NULL, CRLF, sizeof(CRLF) - 1); +#endif /* APR_CHARSET_EBCDIC */ return 1; }