Branch: Tag:

1997-03-26

1997-03-26 05:54:17 by Per Hedbor <ph@opera.com>

Fixes to support the newest pike

Rev: server/base_server/cache.pike:1.11
Rev: server/base_server/config/builders.pike:1.5
Rev: server/base_server/config/describers.pike:1.21
Rev: server/base_server/config/low_describers.pike:1.6
Rev: server/base_server/configuration.pike:1.19
Rev: server/base_server/mainconfig.pike:1.36
Rev: server/base_server/module.pike:1.12
Rev: server/base_server/persistent.pike:1.16
Rev: server/base_server/roxen.pike:1.46
Rev: server/base_server/roxenlib.pike:1.19
Rev: server/base_server/roxenloader.pike:1.11
Rev: server/etc/extensions:1.4
Rev: server/etc/include/module.h:1.7
Rev: server/etc/roxen_master.pike:1.29
Rev: server/etc/supports:1.14
Rev: server/modules/directories/directories.pike:1.9
Rev: server/modules/directories/fastdir.pike:1.7
Rev: server/modules/filesystems/filesystem.pike:1.11
Rev: server/modules/filesystems/userfs.pike:1.11
Rev: server/modules/filters/hostredirect.pike:1.8
Rev: server/modules/filters/redirect.pike:1.7
Rev: server/modules/filters/relay.pike:1.6
Rev: server/modules/graphics/graphic_text.pike:1.39
Rev: server/modules/misc/userdb.pike:1.11
Rev: server/modules/scripting/cgi.pike:1.13
Rev: server/modules/scripting/pikescript.pike:1.9
Rev: server/modules/tags/htmlparse.pike:1.25
Rev: server/protocols/http.pike:1.21

1:   // This is a roxen module. (c) Informationsv√§varna AB 1996.       - string cvs_version = "$Id: http.pike,v 1.20 1997/03/02 09:52:44 per Exp $"; + string cvs_version = "$Id: http.pike,v 1.21 1997/03/26 05:54:17 per Exp $";   // HTTP protocol module.   #include <config.h>   inherit "roxenlib";
643:       if(!mappingp(file))    { -  if(method != "GET" && method != "HEAD" && method != "POST") +  if(misc->error_code) +  file = http_low_answer(misc->error_code, errors[misc->error]); +  else if(method != "GET" && method != "HEAD" && method != "POST")    file = http_low_answer(501, "Not implemented.");    else    file=http_low_answer(404,
895:    object c,t;    c=object_program(t=this_object())();    -  c->my_fd = 0; +  c->first = first; +     c->conf = conf;    c->time = time; -  c->method = method; -  c->prot = prot; -  c->pragma = pragma; -  c->cookies = cookies; +  c->raw_url = raw_url; + // c->do_not_disconnect = do_not_disconnect; // No use where there is no fd.. +  c->variables = copy_value(variables); +  c->misc = copy_value(misc); c->misc->orig = t; +     c->prestate = prestate;    c->supports = supports; -  +  c->config = config; +     c->remoteaddr = remoteaddr; -  +  c->host = host; +     c->client = client; -  +  c->referer = referer; +  c->pragma = pragma; +  +  c->cookies = cookies; + // file.. +  c->my_fd = 0; + // pipe.. +  +  c->prot = prot; +  c->method = method; +  + // realfile virtfile // Should not be copied. +  c->rest_query = rest_query; +  c->raw = raw; +  c->query = query; +  c->not_query = not_query; +  c->extra_extension = extra_extension; +  c->data = data; +     c->auth = auth; -  c->misc = copy_value(misc); -  c->misc->orig = t; +     c->realauth = realauth; -  +  c->rawauth = rawauth; +  c->since = since; +     return c;   }