--- mod_czs.c 2000/08/09 21:09:50 1.8 +++ mod_czs.c 2000/08/10 13:39:31 1.9 @@ -54,29 +54,31 @@ #ifdef DEBUG 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_content-type", r->content_type); if (r->args != 0) { ap_table_setn(r->headers_out, "X-czs_args", r->args); } } #endif - ap_soft_timeout("send", r); - ap_send_http_header(r); - - if(r->header_only) { - ap_kill_timeout(r); - ap_pfclose(r->pool, in); - return OK; - } - -#ifdef TEST_QUERYSTRING - if(r->args == 0 && !do_czs) { +#ifdef TEST_QUERYSTRINGV + if(r->args == 0 && !do_czs || strstr(r->content_type,"cgi") != NULL) { #else - if(!do_czs) { + if(!do_czs || strstr(r->content_type,"cgi") != NULL) { #endif - ap_send_fd(in, r); + return DECLINED; +/* ap_send_fd(in, r); */ } else { + ap_soft_timeout("send", r); + ap_send_http_header(r); + + if(r->header_only) { + ap_kill_timeout(r); + ap_pfclose(r->pool, in); + return OK; + } + while(fgets(buffer,MAX_STRING_LEN,in)) { for(i=0; i