httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject cvs commit: httpd-2.0/modules/http http_protocol.c
Date Sun, 12 May 2002 21:50:46 GMT
brianp      02/05/12 14:50:46

  Modified:    modules/http http_protocol.c
  Log:
  Faster, simpler code for form_header_field() on ASCII based
  platforms
  
  Revision  Changes    Path
  1.420     +7 -0      httpd-2.0/modules/http/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/http_protocol.c,v
  retrieving revision 1.419
  retrieving revision 1.420
  diff -u -r1.419 -r1.420
  --- http_protocol.c	12 May 2002 01:18:28 -0000	1.419
  +++ http_protocol.c	12 May 2002 21:50:46 -0000	1.420
  @@ -996,6 +996,7 @@
   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 @@
       *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;
   }
   
  
  
  

Mime
View raw message