Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2004, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1004 2008/12/11 17:17:58 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1005 2008/12/11 17:25:12 jonasw Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:2545:    return 0; // FAIL   }      string normalize_url(string url)   {    if (!sizeof (url - " " - "\t")) return "";       url = lower_case( url );    Standards.URI ui = Standards.URI(url);    ui->fragment = 0; -  if (lower_case(ui->host) == "any" || ui->host == "::") +  if (ui->host == "any" || ui->host == "::")    ui->host = "*";       string host = ui->host;    string protocol = ui->scheme;    if (!host || !sizeof(host) || !protocols[protocol])    return "";    if (!ui->port)    ui->port = protocols[protocol]->default_port;    return (string) ui;   }
Roxen.git/server/base_server/roxen.pike:2619:    }    ui->fragment = 0;       if( (int)opts->nobind )    {    report_warning(    LOC_M(61,"Not binding the port %O, disabled in configuration")+"\n",    (string) ui );    return 0;    } -  if (lower_case(ui->host) == "any" || ui->host == "::") +  if (ui->host == "any" || ui->host == "::")    ui->host = "*";       protocol = ui->scheme;    host = ui->host;    if (!sizeof(host || "") || !protocols[protocol]) {    report_error(LOC_M(19,"Bad URL '%s' for server `%s'")+"\n",    (string) ui, conf->query_name());    }    if (!ui->port)    ui->port = protocols[protocol]->default_port;