--- parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/07/25 10:57:58 1.37 +++ parser3/src/targets/apache13/modules/extra/Attic/mod_parser3.C 2001/08/10 08:58:56 1.41 @@ -5,7 +5,7 @@ Author: Alexander Petrosyan (http://design.ru/paf) */ -static const char *RCSId="$Id: mod_parser3.C,v 1.37 2001/07/25 10:57:58 parser Exp $"; +static const char *RCSId="$Id: mod_parser3.C,v 1.41 2001/08/10 08:58:56 parser Exp $"; #include "httpd.h" #include "http_config.h" @@ -14,6 +14,7 @@ static const char *RCSId="$Id: mod_parse #include "http_main.h" #include "http_protocol.h" #include "util_script.h" +#include "multithread.h" #include "pa_sapi.h" #include "classes.h" @@ -149,7 +150,7 @@ void SAPI::add_header_attribute(Pool& po } else if(strcasecmp(key, "status")==0) r->status=atoi(value); else - ap_table_merge(r->headers_out, key, value); + ap_table_addn(r->headers_out, key, value); } void SAPI::send_header(Pool& pool) { @@ -175,8 +176,11 @@ void SAPI::send_body(Pool& pool, const v @todo intelligent cache-control */ -static int parser_handler(request_rec *r) -{ +static int parser_handler(request_rec *r) { +// _asm int 3; + if(r->finfo.st_mode == 0) + return NOT_FOUND; + Pool pool(r->pool); pool.set_context(r); @@ -294,7 +298,7 @@ static int parser_handler(request_rec *r */ static void setup_module_cells() { - static bool globals_inited=false; + static bool globals_inited=false; if(globals_inited) return; globals_inited=true;