--- parser3/src/main/pa_http.C 2008/07/15 12:50:11 1.16 +++ parser3/src/main/pa_http.C 2008/09/04 09:37:48 1.18 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_HTTP_C="$Date: 2008/07/15 12:50:11 $"; +static const char * const IDENT_HTTP_C="$Date: 2008/09/04 09:37:48 $"; #include "pa_http.h" #include "pa_common.h" @@ -311,8 +311,8 @@ static void http_pass_cookie(HashStringV HashStringValue::value_type value, Http_pass_header_info *info) { - *info->request << String(name, String::L_HTTP_HEADER) << "=" - << attributed_meaning_to_string(*value, String::L_HTTP_HEADER, false) + *info->request << String(name, String::L_HTTP_COOKIE) << "=" + << attributed_meaning_to_string(*value, String::L_HTTP_COOKIE, false) << "; "; } @@ -364,7 +364,7 @@ static void form_value2string( Form_table_value2string_info info(key, *result); tvalue->for_each(form_table_value2string, &info); } else - throw Exception(0, + throw Exception(PARSER_RUNTIME, new String(key, String::L_TAINTED), "is %s, "HTTP_FORM_NAME" option value must either string or table", value->type()); } @@ -495,7 +495,7 @@ File_read_http_result pa_internal_file_r const char* current=connect_string_cstr; if(strncmp(current, "http://", 7)!=0) - throw Exception(0, + throw Exception(PARSER_RUNTIME, &connect_string, "does not start with http://"); //never current+=7;