--- parser3/src/main/pa_request.C 2007/10/22 16:38:36 1.289 +++ parser3/src/main/pa_request.C 2008/05/30 12:25:21 1.293 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_REQUEST_C="$Date: 2007/10/22 16:38:36 $"; +static const char * const IDENT_REQUEST_C="$Date: 2008/05/30 12:25:21 $"; #include "pa_sapi.h" #include "pa_common.h" @@ -14,7 +14,7 @@ static const char * const IDENT_REQUEST_ #include "pa_vclass.h" #include "pa_globals.h" #include "pa_vint.h" -#include "pa_vmethod_frame.h" +#include "pa_vmethod_frame_global.h" #include "pa_types.h" #include "pa_venv.h" #include "pa_vmath.h" @@ -405,7 +405,7 @@ gettimeofday(&mt[2],NULL); if(const Method *method=junction->method) { // preparing to pass parameters to // @postprocess[data] - VMethodFrame frame(/*method->name, */ *junction, 0/*no parent*/); + VMethodFrameGlobal frame(/*method->name, */ *junction, 0/*no parent*/); frame.set_self(main_class); frame.store_param(*body_value); @@ -467,7 +467,7 @@ t[9]-t[3] if(const Method *method=junction->method) { // preparing to pass parameters to // @unhandled_exception[exception;stack] - VMethodFrame frame(/*method->name, */ *junction, 0/*no caller*/); + VMethodFrameGlobal frame(/*method->name, */ *junction, 0/*no caller*/); frame.set_self(main_class); // $exception @@ -660,21 +660,21 @@ public: }; #endif static void add_header_attribute( - HashStringValue::key_type aattribute, - HashStringValue::value_type ameaning, + HashStringValue::key_type name, + HashStringValue::value_type value, Add_header_attribute_info* info) { - if(aattribute==BODY_NAME - || aattribute==DOWNLOAD_NAME - || aattribute==CHARSET_NAME) + if(name==BODY_NAME + || name==DOWNLOAD_NAME + || name==CHARSET_NAME) return; + + const char* aname=String(name, String::L_URI).cstr(String::L_UNSPECIFIED, 0, &info->r.charsets); - const char* a=aattribute.cstr(); SAPI::add_header_attribute(info->r.sapi_info, - a, - attributed_meaning_to_string(*ameaning, String::L_HTTP_HEADER, false). - cstr(String::L_UNSPECIFIED)); + aname, + attributed_meaning_to_string(*value, String::L_URI, false).cstr(String::L_UNSPECIFIED, 0, &info->r.charsets)); - if(strcasecmp(a, "last-modified")==0) + if(strcasecmp(aname, "last-modified")==0) info->add_last_modified = false; }