Roxen.git / server / protocols / http.pike

version» Context lines:

Roxen.git/server/protocols/http.pike:1:   // This is a roxen protocol module.   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.586 2009/01/29 22:00:57 marty Exp $"; + constant cvs_version = "$Id$";   // #define REQUEST_DEBUG   #define MAGIC_ERROR      #define REQUESTID this      #ifdef MAGIC_ERROR   inherit "highlight_pike";   #endif      // HTTP protocol module.
Roxen.git/server/protocols/http.pike:2187: Inside #if defined(HTTP_COMPRESSION)
   // handled directly by the protocol cache.    if(!misc->vary)    misc->vary = (< "Accept-Encoding" >);    else    misc->vary["Accept-Encoding"] = 1;    }   #endif       mapping(string:string) heads = make_response_headers (file);    +  if (heads["Set-Cookie"]) { +  // Never protocol cache setting of cookies. +  NO_PROTO_CACHE(); +  } +     // Notes about the variant headers:    //    // Date Changes with every request.    // Content-Type May change if a byte-range request is performed.    // Content-Length May change due to If-* headers, etc.    // Connection Depends on the protocol version and state.    // Expires Might need to modify this for HTTP/1.0 clients.    // Cache-Control Might need to modify this when sending stale responses.    mapping(string:string) variant_heads = ([ "Date":"",    "Content-Type":"",