--- parser3/src/classes/file.C 2003/11/20 17:07:43 1.116 +++ parser3/src/classes/file.C 2003/12/11 09:25:49 1.118 @@ -5,7 +5,7 @@ Author: Alexandr Petrosian (http://paf.design.ru) */ -static const char * const IDENT_FILE_C="$Date: 2003/11/20 17:07:43 $"; +static const char * const IDENT_FILE_C="$Date: 2003/12/11 09:25:49 $"; #include "pa_config_includes.h" @@ -284,8 +284,8 @@ static void _exec_cgi(Request& r, Method //String content_length(content_length_cstr); ECSTR(CONTENT_LENGTH, content_length_cstr); // SCRIPT_* - env.put(String::Body("SCRIPT_NAME"), script_name); - //env.put(String::Body("SCRIPT_FILENAME"), ??&script_name); + env.put("SCRIPT_NAME", script_name); + //env.put("SCRIPT_FILENAME", ??&script_name); bool stdin_specified=false; // environment & stdin from param @@ -412,7 +412,7 @@ static void _exec_cgi(Request& r, Method // $stderr if(real_err->length()) self.fields().put( - String::Body("stderr"), + "stderr", new VString(*real_err)); } static void _exec(Request& r, MethodParams& params) { @@ -504,7 +504,7 @@ static void _lock(Request& r, MethodPara const String& file_spec=r.absolute(params.as_string(0, "file name must be string")); Lock_execute_body_info info={ &r, - ¶ms.as_junction(1, "body must be code"); + ¶ms.as_junction(1, "body must be code") }; file_write_action_under_lock(file_spec, "lock", lock_execute_body, &info);