--- parser3/src/main/pa_request.C 2007/10/22 13:44:59 1.288 +++ parser3/src/main/pa_request.C 2008/02/14 18:32:36 1.290 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_REQUEST_C="$Date: 2007/10/22 13:44:59 $"; +static const char * const IDENT_REQUEST_C="$Date: 2008/02/14 18:32:36 $"; #include "pa_sapi.h" #include "pa_common.h" @@ -58,6 +58,7 @@ const char* ORIGINS_CONTENT_TYPE="text/p const String main_method_name(MAIN_METHOD_NAME); const String auto_method_name(AUTO_METHOD_NAME); +const String content_transfer_encoding_name(CONTENT_TRANSFER_ENCODING_NAME); const String content_disposition_name(CONTENT_DISPOSITION_NAME); const String content_disposition_inline(CONTENT_DISPOSITION_INLINE); const String content_disposition_attachment(CONTENT_DISPOSITION_ATTACHMENT); @@ -659,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; }