Roxen.git / server / plugins / protocols / http.pike

version» Context lines:

Roxen.git/server/plugins/protocols/http.pike:1:   // This is a roxen protocol module.   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2001, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.373 2002/07/03 12:44:18 nilsson Exp $"; + constant cvs_version = "$Id: http.pike,v 1.374 2002/07/03 12:56:00 nilsson Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR      #ifdef MAGIC_ERROR   inherit "highlight_pike";   #endif      // HTTP protocol module.   #include <config.h>   #define TIMER_PREFIX "http:"
Roxen.git/server/plugins/protocols/http.pike:1874:      // Execute the request   void handle_request( )   {    REQUEST_WERR("HTTP: handle_request()");    TIMER_START(handle_request);   #ifdef MAGIC_ERROR    if(prestate->old_error)    {    array err = get_error(variables->error); -  if(err) +  if(err && arrayp(err))    {    if(prestate->plain)    {    file = ([    "type":"text/plain",    "data":generate_bugreport( @err ),    ]);    TIMER_END(handle_request);    send_result();    return;