On Thu, Jan 08, 2009 at 09:40:59PM -0000, [email protected] wrote:
> Author: covener
> Date: Thu Jan  8 13:40:59 2009
> New Revision: 732832
> 
> URL: http://svn.apache.org/viewvc?rev=732832&view=rev
> Log:
> Translate locally generated "100-Continue" message to
> ASCII on EBCDIC systems.
...
> --- httpd/httpd/trunk/modules/http/http_filters.c (original)
> +++ httpd/httpd/trunk/modules/http/http_filters.c Thu Jan  8 13:40:59 2009
> @@ -328,11 +328,14 @@
>                  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);

The 100-continue generation is duplicated in server/protocol.c's 
ap_send_interim_response(), is that change needed in the other copy too?

joe

Reply via email to