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

version» Context lines:

Roxen.git/server/plugins/protocols/http.pike:1:   // This is a ChiliMoon protocol module.   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2001, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.386 2002/10/24 00:16:39 nilsson Exp $"; + constant cvs_version = "$Id: http.pike,v 1.387 2002/10/24 00:17:43 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:1576:    }       if (misc->last_modified)    heads["Last-Modified"] = Roxen.http_date(misc->last_modified);      // werror("lm: %O\n"   // "cacheable: %O\n",   // misc->last_modified,   // misc->cacheable);    -  if(since) +  if(since && (!file->error || file->error == 200) && misc->last_modified)    {    /* ({ time, len }) */    array(int) since_info = Roxen.parse_since( since );   // werror("since: %{%O, %}\n"   // "lm: %O\n"   // "cacheable: %O\n",   // since_info,   // misc->last_modified,   // misc->cacheable);    if ( ((since_info[0] >= misc->last_modified) &&