Roxen.git/
server/
plugins/
protocols/
http.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2004-05-24
2004-05-24 21:02:48 by Martin Nilsson <mani@lysator.liu.se>
c659612f026f2339694c06b32fdf86725dbe8b14 (
15
lines) (+
8
/-
7
)
[
Show
|
Annotate
]
Branch:
Aphoto_2.0_beta3
Type fixes.
Rev: server/plugins/protocols/http.pike:1.400
2:
// Modified by Francesco Chemolli to add throttling capabilities. // Copyright © 1996 - 2001, Roxen IS.
-
constant cvs_version = "$Id: http.pike,v 1.
399
2004/05/24
13
:
40
:
49
_cvs_stephen
Exp $";
+
constant cvs_version = "$Id: http.pike,v 1.
400
2004/05/24
21
:
02
:
48
mani
Exp $";
// #define REQUEST_DEBUG #define MAGIC_ERROR
120:
switch( i ) { case 0:
-
return conf->authenticate( this
_object()
);
+
return conf->authenticate( this );
case 1:
-
if( u = conf->authenticate( this
_object()
) )
+
if( u = conf->authenticate( this ) )
return u->name(); if( realauth ) return (realauth/":")[0]; case 2:
-
if( u = conf->authenticate( this
_object()
) )
+
if( u = conf->authenticate( this ) )
return 0; if( realauth ) return ((realauth/":")[1..])*":";
841:
&& !catch(my_fd->query_address()) ) { // Now.. Transfer control to a new http-object. Reset all variables etc..
-
object
o =
object
_program(
this)(
0, 0, 0);
+
this_program
o =
this
_program(0, 0, 0);
o->remoteaddr = remoteaddr; o->client = client; o->supports = supports;
2152:
/* Get a somewhat identical copy of this object, used when doing * 'simulated' requests. */
-
object
clone_me()
+
this_program
clone_me()
{
-
object
c=
object
_program(
this)(
0, port_obj, conf);
+
this_program
c=
this
_program(0, port_obj, conf);
#ifdef ID_OBJ_DEBUG werror ("clone %O -> %O\n", this, c); #endif