--- parser3/src/main/pa_request.C 2002/11/25 14:10:53 1.239 +++ parser3/src/main/pa_request.C 2002/11/26 14:36:49 1.241 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char* IDENT_REQUEST_C="$Date: 2002/11/25 14:10:53 $"; +static const char* IDENT_REQUEST_C="$Date: 2002/11/26 14:36:49 $"; #include "pa_sapi.h" #include "pa_common.h" @@ -140,12 +140,13 @@ void Request::configure_admin(VStateless ] */ if(Value *vcharsets=conf_class.get_element(*charsets_name, conf_class, false)) { - if(Hash *charsets=vcharsets->get_hash(0)) - charsets->for_each(load_charset); - else if(!vcharsets->get_string()) - throw Exception("parser.runtime", - 0, - "$" MAIN_CLASS_NAME ":" CHARSETS_NAME " must be hash"); + if(!vcharsets->is_string()) + if(Hash *charsets=vcharsets->get_hash(0)) + charsets->for_each(load_charset); + else + throw Exception("parser.runtime", + 0, + "$" MAIN_CLASS_NAME ":" CHARSETS_NAME " must be hash"); } // configure method_frame options @@ -555,7 +556,7 @@ static void add_header_attribute(const H SAPI::add_header_attribute(pool, aattribute.cstr(), - attributed_meaning_to_string(lmeaning, String::UL_HTTP_HEADER).cstr()); + attributed_meaning_to_string(lmeaning, String::UL_HTTP_HEADER).cstr(String::UL_UNSPECIFIED)); } void Request::output_result(const VFile& body_file, bool header_only) { // header: cookies