httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roy Fielding <field...@hyperreal.com>
Subject cvs commit: apache/src http_protocol.c
Date Wed, 06 Nov 1996 11:23:09 GMT
fielding    96/11/06 03:23:09

  Modified:    src       http_protocol.c
  Log:
  Its a good thing to handle error condition from time system call. Doh!
  
  Revision  Changes    Path
  1.72      +3 -0      apache/src/http_protocol.c
  
  Index: http_protocol.c
  ===================================================================
  RCS file: /export/home/cvs/apache/src/http_protocol.c,v
  retrieving revision 1.71
  retrieving revision 1.72
  diff -C3 -r1.71 -r1.72
  *** http_protocol.c	1996/11/06 10:30:38	1.71
  --- http_protocol.c	1996/11/06 11:23:08	1.72
  ***************
  *** 253,258 ****
  --- 253,261 ----
        char *if_match          = table_get(r->headers_in, "If-Match");
        time_t now = time(NULL);
    
  +     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