Roxen.git / server / plugins / protocols / http.pike

version» Context lines:

Roxen.git/server/plugins/protocols/http.pike:1:   // This is a roxen protocol module.   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2001, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.380 2002/07/17 17:57:22 nilsson Exp $"; + constant cvs_version = "$Id: http.pike,v 1.381 2002/10/01 23:19:36 nilsson Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR      // HTTP protocol module.   #include <config.h>   #define TIMER_PREFIX "http:"   #include <timers.h>      inherit RequestID;   
Roxen.git/server/plugins/protocols/http.pike:1853:   void adjust_for_config_path( string p )   {    if( not_query ) not_query = not_query[ strlen(p).. ];    raw_url = raw_url[ strlen(p).. ];    misc->site_prefix_path = p;   }      string url_base()   // See the RequestID class for doc.   { -  // Note: Code duplication in base_server/prototypes.pike. +  // Note: Code duplication in server_core/prototypes.pike.       if (!cached_url_base) {    // First look at the host header in the request.    if (string tmp = misc->host) {    int scanres = sscanf (tmp, "%[^:]:%d", string host, int port);    if (scanres < 2)    // Some clients don't send the port in the host header.    port = port_obj->port;    if (port_obj->default_port == port)    // Remove redundant port number.