httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@hyperreal.org>
Subject cvs commit: apache/src http_protocol.c
Date Sun, 03 Aug 1997 21:36:00 GMT
dgaudet     97/08/03 14:35:59

  Modified:    src       http_protocol.c
  Log:
  Reverse this change for now, waiting for Roy's comments on another
  alternative.
  
  Revision  Changes    Path
  1.148     +3 -2      apache/src/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/http_protocol.c,v
  retrieving revision 1.147
  retrieving revision 1.148
  diff -u -r1.147 -r1.148
  --- http_protocol.c	1997/08/02 00:58:27	1.147
  +++ http_protocol.c	1997/08/03 21:35:58	1.148
  @@ -350,9 +350,10 @@
   {
       char *etag, weak_etag[MAX_STRING_LEN];
       char *if_match, *if_modified_since, *if_unmodified, *if_nonematch;
  -    time_t now;
  +    time_t now = time(NULL);
   
  -    now = r->request_time;
  +    if (now < 0)
  +	now = r->request_time;
   
       table_set(r->headers_out, "Last-Modified",
                 gm_timestr_822(r->pool, (mtime > now) ? now : mtime));
  
  
  

Mime
View raw message