--- parser3/src/main/pa_http.C 2009/07/15 13:00:24 1.31 +++ parser3/src/main/pa_http.C 2009/08/08 13:30:21 1.33 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_HTTP_C="$Date: 2009/07/15 13:00:24 $"; +static const char * const IDENT_HTTP_C="$Date: 2009/08/08 13:30:21 $"; #include "pa_http.h" #include "pa_common.h" @@ -456,7 +456,7 @@ static void form_value2part( Form_table_value2string_info info(key, part.string); part.info = &info; tvalue->for_each(form_table_value2part, &part); - } else if(VFile* vfile=static_cast(value->as("file", false))){ + } else if(VFile* vfile=static_cast(value->as("file"))){ form_file_value2part(key, *vfile, part); } else throw Exception(PARSER_RUNTIME, @@ -776,7 +776,7 @@ File_read_http_result pa_internal_file_r const String::Body HEADER_NAME=line.mid(0, pos).change_case(r.charsets.source(), String::CC_UPPER); const String& HEADER_VALUE=line.mid(pos+1, line.length()).trim(String::TRIM_BOTH, " \t\r"); if(as_text && HEADER_NAME==HTTP_CONTENT_TYPE_UPPER) - real_remote_charset=detect_charset(HEADER_VALUE.cstr(), true/*already uppercased*/); + real_remote_charset=detect_charset(HEADER_VALUE.cstr()); // tables {