--- mod_czs.c 2000/08/09 06:54:43 1.1 +++ mod_czs.c 2000/08/09 19:36:13 1.5 @@ -52,11 +52,11 @@ } if(r->args != 0 || do_czs) { ap_table_setn(r->headers_out, "X-czs_filename", r->filename); - ap_table_setn(r->headers_out, "X-czs_args", r->args); + if (r->args != 0) { + ap_table_setn(r->headers_out, "X-czs_args", r->args); + } } - r->content_type = "text/html"; /* hm? */ - ap_soft_timeout("send", r); ap_send_http_header(r); @@ -68,29 +68,30 @@ #ifdef TEST_QUERYSTRING if(r->args == 0 && !do_czs) { +#else + if(!do_czs) { +#endif ap_send_fd(in, r); } else { -#endif - while(fgets(buffer,MAX_STRING_LEN,in)) { - for(i=0; ipool, in); @@ -100,6 +101,7 @@ int translate_path(request_rec *r) { char *uri = r->uri; request_rec *subr; + do_czs=0; if (uri[0]=='/' && uri[1]=='_' && uri[2]=='/') { #if 0