Branch: Tag:

2005-12-07

2005-12-07 13:24:50 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Bugfix for expiry header.

Rev: server/protocols/http.pike:1.488

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2004, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.487 2005/12/05 17:04:22 grubba Exp $"; + constant cvs_version = "$Id: http.pike,v 1.488 2005/12/07 13:24:50 grubba Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
2561: Inside #if defined(RAM_CACHE)
   "Content-Length":(string)len,    "Content-Type":file->type,    "Connection":misc->connection, -  "Expires":(file->varies && (prot == "HTTP/1.0")? -  Roxen->http_date(predef::time(1)-31557600): -  file->expires), +     ]); -  +  string expires; +  if (expires = (file->varies && (prot == "HTTP/1.0")? +  Roxen->http_date(predef::time(1)-31557600): +  file->expires)) { +  variant_heads["Expires"] = expires; +  }    if (misc->range) {    // Handle byte ranges.    int skip;