--- parser3/src/main/pa_http.C 2009/09/03 11:08:18 1.38 +++ parser3/src/main/pa_http.C 2009/09/08 09:14:02 1.40 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_HTTP_C="$Date: 2009/09/03 11:08:18 $"; +static const char * const IDENT_HTTP_C="$Date: 2009/09/08 09:14:02 $"; #include "pa_http.h" #include "pa_common.h" @@ -323,7 +323,7 @@ static void http_pass_header(HashStringV Http_pass_header_info *info) { String name=String(aname, String::L_URI); - const char* name_cstr=name.cstr(); + const char* name_cstr=capitalize(name.cstr()); if(strcasecmp(name_cstr, HTTP_CONTENT_LENGTH)==0) return; @@ -579,7 +579,7 @@ File_read_http_result pa_internal_file_r if(valid_options!=options->count()) throw Exception(PARSER_RUNTIME, 0, - "invalid option passed"); + INVALID_OPTION_PASSED); } if(!asked_remote_charset) // defaulting to $request:charset asked_remote_charset=&(r.charsets).source();