Branch: Tag:

2001-06-22

2001-06-22 03:00:36 by Martin Nilsson <mani@lysator.liu.se>

Fixed a bug where the date header could have only a \n as delimiter, instead of \r\n

Rev: server/protocols/http.pike:1.318

2:   // Modified by Francesco Chemolli to add throttling capabilities.   // Copyright © 1996 - 2000, Roxen IS.    - constant cvs_version = "$Id: http.pike,v 1.317 2001/06/08 20:13:07 mast Exp $"; + constant cvs_version = "$Id: http.pike,v 1.318 2001/06/22 03:00:36 nilsson Exp $";   // #define REQUEST_DEBUG   #define MAGIC_ERROR   
2065: Inside #if defined(RAM_CACHE)
   {    string a, b;    if( sscanf( headers, "%sDate: %*s\n%s", a, b ) == 3 ) -  return a+"Date: "+Roxen.http_date( predef::time(1) ) +"\n"+b; +  return a+"Date: "+Roxen.http_date( predef::time(1) ) +"\r\n"+b;    return headers;    };