httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r..@apache.org
Subject cvs commit: httpd-2.0/modules/http http_request.c
Date Fri, 05 Apr 2002 21:24:14 GMT
rbb         02/04/05 13:24:14

  Modified:    modules/http http_request.c
  Log:
  Fix a segfault.  Only try to set this if the sub_Request has a c-t.
  
  Revision  Changes    Path
  1.139     +3 -1      httpd-2.0/modules/http/http_request.c
  
  Index: http_request.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/http_request.c,v
  retrieving revision 1.138
  retrieving revision 1.139
  diff -u -r1.138 -r1.139
  --- http_request.c	5 Apr 2002 21:16:11 -0000	1.138
  +++ http_request.c	5 Apr 2002 21:24:13 -0000	1.139
  @@ -422,7 +422,9 @@
       r->args = rr->args;
       r->finfo = rr->finfo;
       r->handler = rr->handler;
  -    ap_set_content_type(r, rr->content_type);
  +    if (rr->content_type) {
  +        ap_set_content_type(r, rr->content_type);
  +    }
       r->content_encoding = rr->content_encoding;
       r->content_languages = rr->content_languages;
       r->per_dir_config = rr->per_dir_config;
  
  
  

Mime
View raw message