54 |
#ifdef DEBUG |
#ifdef DEBUG |
55 |
if(r->args != 0 || do_czs) { |
if(r->args != 0 || do_czs) { |
56 |
ap_table_setn(r->headers_out, "X-czs_filename", r->filename); |
ap_table_setn(r->headers_out, "X-czs_filename", r->filename); |
57 |
|
ap_table_setn(r->headers_out, "X-czs_content-type", r->content_type); |
58 |
if (r->args != 0) { |
if (r->args != 0) { |
59 |
ap_table_setn(r->headers_out, "X-czs_args", r->args); |
ap_table_setn(r->headers_out, "X-czs_args", r->args); |
60 |
} |
} |
61 |
} |
} |
62 |
#endif |
#endif |
63 |
|
|
64 |
ap_soft_timeout("send", r); |
#ifdef TEST_QUERYSTRINGV |
65 |
ap_send_http_header(r); |
if(r->args == 0 && !do_czs || strstr(r->content_type,"cgi") != NULL) { |
|
|
|
|
if(r->header_only) { |
|
|
ap_kill_timeout(r); |
|
|
ap_pfclose(r->pool, in); |
|
|
return OK; |
|
|
} |
|
|
|
|
|
#ifdef TEST_QUERYSTRING |
|
|
if(r->args == 0 && !do_czs) { |
|
66 |
#else |
#else |
67 |
if(!do_czs) { |
if(!do_czs || strstr(r->content_type,"cgi") != NULL) { |
68 |
#endif |
#endif |
69 |
ap_send_fd(in, r); |
return DECLINED; |
70 |
|
/* ap_send_fd(in, r); */ |
71 |
} else { |
} else { |
72 |
|
|
73 |
|
ap_soft_timeout("send", r); |
74 |
|
ap_send_http_header(r); |
75 |
|
|
76 |
|
if(r->header_only) { |
77 |
|
ap_kill_timeout(r); |
78 |
|
ap_pfclose(r->pool, in); |
79 |
|
return OK; |
80 |
|
} |
81 |
|
|
82 |
while(fgets(buffer,MAX_STRING_LEN,in)) { |
while(fgets(buffer,MAX_STRING_LEN,in)) { |
83 |
for(i=0; i<MAX_STRING_LEN && buffer[i]; i++) { |
for(i=0; i<MAX_STRING_LEN && buffer[i]; i++) { |
84 |
switch ( buffer[i] ) { |
switch ( buffer[i] ) { |