Branch: Tag:

2001-06-22

2001-06-22 02:59:33 by Martin Nilsson <mani@lysator.liu.se>

Set errorcode directly in the result mapping in error_file.

Rev: server/base_server/configuration.pike:1.440

3:   //   // A site's main configuration    - constant cvs_version = "$Id: configuration.pike,v 1.439 2001/06/21 10:23:27 wellhard Exp $"; + constant cvs_version = "$Id: configuration.pike,v 1.440 2001/06/22 02:59:33 nilsson Exp $";   #include <module.h>   #include <module_constants.h>   #include <roxen.h>
1921: Inside #if ROXEN_COMPAT <= 2.1
   data = replace(data,({"$File", "$Me"}),    ({"&page.virtfile;", "&roxen.server;"}));   #endif -  id->misc->defines = ([ " _error":404 ]); -  return Roxen.http_rxml_answer( data, id, 0, "text/html" ); +  mapping res = Roxen.http_rxml_answer( data, id, 0, "text/html" ); +  res->error = 404; +  return res;   }      // this is not as trivial as it sounds. Consider gtext. :-)