httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/http http_protocol.c
Date Tue, 02 Jan 2001 19:22:15 GMT
trawick     01/01/02 11:22:14

  Modified:    modules/http http_protocol.c
  Log:
  EBCDIC: Fix some byterange protocol data translation.
  
  Revision  Changes    Path
  1.265     +6 -3      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.264
  retrieving revision 1.265
  diff -u -r1.264 -r1.265
  --- http_protocol.c	2001/01/01 00:34:25	1.264
  +++ http_protocol.c	2001/01/02 19:22:09	1.265
  @@ -222,7 +222,7 @@
       apr_off_t range_start;
       apr_off_t range_end;
       char *current;
  -    const char *bound_head;
  +    char *bound_head;
       int clength = 0;
       apr_status_t rv;
       int found = 0;
  @@ -268,6 +268,7 @@
                                make_content_type(r, r->content_type),
                                CRLF "Content-range: bytes ", 
                                NULL);
  +    ap_xlate_proto_to_ascii(bound_head, strlen(bound_head));
   
       /* concat the passed brigade with our saved brigade */
       AP_BRIGADE_CONCAT(ctx->bb, bb);
  @@ -370,7 +371,7 @@
           }
   
           if (ctx->num_ranges > 1) {
  -            const char *ts;
  +            char *ts;
   
               e = ap_bucket_create_pool(bound_head,
                                         strlen(bound_head), r->pool);
  @@ -378,6 +379,7 @@
   
               ts = apr_psprintf(r->pool, BYTERANGE_FMT CRLF CRLF,
                                 range_start, range_end, clength);
  +            ap_xlate_proto_to_ascii(ts, strlen(ts));
               e = ap_bucket_create_pool(ts, strlen(ts), r->pool);
               AP_BRIGADE_INSERT_TAIL(bsend, e);
           }
  @@ -393,10 +395,11 @@
       }
   
       if (ctx->num_ranges > 1) {
  -        const char *end;
  +        char *end;
   
           /* add the final boundary */
           end = apr_pstrcat(r->pool, CRLF "--", r->boundary, "--" CRLF, NULL);
  +        ap_xlate_proto_to_ascii(end, strlen(end));
           e = ap_bucket_create_pool(end, strlen(end), r->pool);
           AP_BRIGADE_INSERT_TAIL(bsend, e);
       }
  
  
  

Mime
View raw message