--- parser3/src/main/pa_request.C 2003/11/20 16:41:51 1.258 +++ parser3/src/main/pa_request.C 2003/12/11 09:36:51 1.263 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_REQUEST_C="$Date: 2003/11/20 16:41:51 $"; +static const char * const IDENT_REQUEST_C="$Date: 2003/12/11 09:36:51 $"; #include "pa_sapi.h" #include "pa_common.h" @@ -118,7 +118,7 @@ Request::Request(SAPI_Info& asapi_info, charsets(UTF8_charset, UTF8_charset, UTF8_charset), // default charsets main_class(VClassMAIN_create()), - form(*new VForm), + form(*new VForm(charsets, arequest_info)), mail(*new VMail), response(*new VResponse(arequest_info, charsets)), cookie(*new VCookie), @@ -131,6 +131,8 @@ Request::Request(SAPI_Info& asapi_info, // private mime types mime_types(0) { + pa_register_thread_request(*this); + // file_no=0 => unknown file_list+=String::Body("UNKNOWN"); file_list+=String::Body("-body of process-"); // pseudo_file_no__process @@ -308,9 +310,6 @@ gettimeofday(&mt[0],NULL); if(Table *table=element->get_table()) mime_types=table; - // filling form fields - form.fill_fields_and_tables(charsets, request_info); - // filling cookies cookie.fill_fields(request_info); @@ -532,7 +531,7 @@ void Request::use_file(VStateless_class& int size=table->count(); for(int i=size; i--; ) { const String& path=*(*table->get(i))[0]; - if(file_spec=file_readable(absolute(path), file_name)) + if((file_spec=file_readable(absolute(path), file_name))) break; // found along class_path } } else @@ -632,7 +631,7 @@ void Request::output_result(VFile* body_ Value* body_file_content_type; // set content-type - if(body_file_content_type=body_file->fields().get(content_type_name)) { + if((body_file_content_type=body_file->fields().get(content_type_name))) { // body file content type response.fields().put(content_type_name, body_file_content_type); } else {