Roxen.git/
server/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1999-10-10
1999-10-10 19:21:55 by Per Hedbor <ph@opera.com>
0e5b1a176b51f1a85d68cef319ddcd0b54f0132d (
11
lines) (+
8
/-
3
)
[
Show
|
Annotate
]
Branch:
5.2
Fix id->port_obj in clone_me
Rev: server/protocols/http.pike:1.163
1:
// This is a roxen module. // Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 1998, Idonex AB.
-
// $Id: http.pike,v 1.
162
1999/10/
09
16
:
40
:
02
grubba
Exp $
+
// $Id: http.pike,v 1.
163
1999/10/
10
19
:
21
:
55
per
Exp $
#define MAGIC_ERROR #ifdef MAGIC_ERROR inherit "highlight_pike"; #endif
-
constant cvs_version = "$Id: http.pike,v 1.
162
1999/10/
09
16
:
40
:
02
grubba
Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
163
1999/10/
10
19
:
21
:
55
per
Exp $";
// HTTP protocol module. #include <config.h> private inherit "roxenlib";
853:
// first entry is always the error, // second is the actual function, // rest is backtrace.
-
bt = map( bt, html_encode_string );
+
//
bt = map( bt, html_encode_string );
+
bt = map( bt, lambda( string q ){
+
return highlight_pike("foo", ([ "nopre":1 ]), q);
+
} );
string reason = roxen.diagnose_error( bt ); if(sizeof(bt) == 1) // No backtrace?! bt += ({ "Unknown error, no backtrace."});
1632:
c=object_program(t=this_object())(); // c->first = first;
+
c->port_obj = port_obj;
c->conf = conf; c->time = time; c->raw_url = raw_url;