--- parser3/src/main/pa_http.C 2009/05/14 08:10:09 1.25 +++ parser3/src/main/pa_http.C 2009/06/05 06:26:19 1.27 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_HTTP_C="$Date: 2009/05/14 08:10:09 $"; +static const char * const IDENT_HTTP_C="$Date: 2009/06/05 06:26:19 $"; #include "pa_http.h" #include "pa_common.h" @@ -679,6 +679,7 @@ File_read_http_result pa_internal_file_r r.charsets.source(), *asked_remote_charset ); + post_size=strlen(body_cstr); } // http://www.ietf.org/rfc/rfc2617.txt @@ -780,7 +781,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(r.charsets.source(), HEADER_VALUE); + real_remote_charset=detect_charset(HEADER_VALUE.cstr(), true/*already uppercased*/); // tables {