--- parser3/src/targets/isapi/parser3isapi.C 2003/01/31 12:34:41 1.82.2.1 +++ parser3/src/targets/isapi/parser3isapi.C 2003/02/14 17:28:21 1.82.2.3 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_PARSER3ISAPI_C="$Date: 2003/01/31 12:34:41 $"; +static const char* IDENT_PARSER3ISAPI_C="$Date: 2003/02/14 17:28:21 $"; #ifndef _MSC_VER # error compile ISAPI module with MSVC [no urge for now to make it autoconf-ed (PAF)] @@ -137,7 +137,7 @@ static const char* mk_env_pair(Pool& poo strcpy(result, key); strcat(result, "="); strcat(result, value); return result; } -const char* const *SAPI::environment(Pool& pool) { +const char* const *SAPI::environment(SAPI_Info& info, Pool& pool) { // we know this buf is writable char *all_http_vars=const_cast(SAPI::get_env(pool, "ALL_HTTP")); const int http_var_count=grep_char(all_http_vars, '\n')+1/*\n for theoretical(never saw) this \0*/; @@ -196,18 +196,20 @@ size_t SAPI::read_post(Pool& pool, char return total_read; } -void SAPI::add_header_attribute(Pool& pool, const char* key, const char* value) { +void SAPI::add_header_attribute(Pool& pool, + const char* dont_store_key, const char* dont_store_value) { SAPI_func_context& ctx=*static_cast(pool.get_context()); if(strcasecmp(key, "location")==0) ctx.http_response_code=302; if(strcasecmp(key, "status")==0) - ctx.http_response_code=atoi(value); + ctx.http_response_code=atoi(dont_store_value); else { - ctx.header->APPEND_CONST(key); +todo: copy dont_store_ to nonvilotile + ctx.header->APPEND_CONST(dont_store_key); ctx.header->APPEND_CONST(": "); - ctx.header->APPEND_CONST(value); + ctx.header->APPEND_CONST(dont_store_value); ctx.header->APPEND_CONST("\r\n"); } } @@ -280,7 +282,7 @@ static bool parser_init() { static Pool pool(&pool_storage); // global pool try { // init socks - init_socks(pool); + pa_init_socks(pool); // init global classes init_methoded_array(pool); // init global variables