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.1012 2009/01/11 14:50:26 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1013 2009/01/11 15:23:12 mast 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:2561:       report_error(LOC_M(46, "Cannot possibly bind to %O, that host is "    "unknown. Substituting with ANY")+"\n", what);    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 (ui->host == "any" || ui->host == "::")    ui->host = "*";    else    // FIXME: Maybe Standards.URI should do this internally? -  ui->host = Standards.IDNA.zone_to_ascii (ui->host); +  ui->host = lower_case(Standards.IDNA.zone_to_ascii (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;   }