|
|
| version 1.95, 2002/08/08 09:35:22 | version 1.97, 2002/09/10 10:55:32 |
|---|---|
| Line 328 static void _exec_cgi(Request& r, const | Line 328 static void _exec_cgi(Request& r, const |
| self.fields().put( | self.fields().put( |
| *new(pool) String(pool, "stderr"), | *new(pool) String(pool, "stderr"), |
| new(pool) VString(err)); | new(pool) VString(err)); |
| SAPI::log(pool, "file:%s: %s", cgi?"cgi":"exec", err.cstr()); | |
| } | } |
| } | } |
| static void _exec(Request& r, const String& method_name, MethodParams *params) { | static void _exec(Request& r, const String& method_name, MethodParams *params) { |
| Line 459 static void _find(Request& r, const Stri | Line 457 static void _find(Request& r, const Stri |
| // easy way | // easy way |
| if(file_readable(r.absolute(*file_spec))) { | if(file_readable(r.absolute(*file_spec))) { |
| r.write_no_lang(*file_spec); | r.write_assign_lang(*file_spec); |
| return; | return; |
| } | } |
| Line 474 static void _find(Request& r, const Stri | Line 472 static void _find(Request& r, const Stri |
| local_test_name<<*(dirname=&dirname->mid(0, after_monkey_slash)); | local_test_name<<*(dirname=&dirname->mid(0, after_monkey_slash)); |
| local_test_name<<basename; | local_test_name<<basename; |
| if(file_readable(r.absolute(local_test_name))) { | if(file_readable(r.absolute(local_test_name))) { |
| r.write_no_lang(*new(pool) String(local_test_name)); | r.write_assign_lang(*new(pool) String(local_test_name)); |
| return; | return; |
| } | } |
| } | } |