Always have parse_header_time return a pointer
authorFabian Keil <fk@fabiankeil.de>
Wed, 6 Sep 2006 16:25:51 +0000 (16:25 +0000)
committerFabian Keil <fk@fabiankeil.de>
Wed, 6 Sep 2006 16:25:51 +0000 (16:25 +0000)
that actual makes sense, even though we currently
only need it to detect problems.

parsers.c

index 3e524c2..77e6c1a 100644 (file)
--- a/parsers.c
+++ b/parsers.c
@@ -1,4 +1,4 @@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.67 2006/09/04 11:01:26 fabiankeil Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.68 2006/09/06 10:43:32 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/parsers.c,v $
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@ -40,6 +40,12 @@ const char parsers_rcs[] = "$Id: parsers.c,v 1.67 2006/09/04 11:01:26 fabiankeil
  *
  * Revisions   :
  *    $Log: parsers.c,v $
  *
  * Revisions   :
  *    $Log: parsers.c,v $
+ *    Revision 1.68  2006/09/06 10:43:32  fabiankeil
+ *    Added config option enable-remote-http-toggle
+ *    to specify if Privoxy should recognize special
+ *    headers (currently only X-Filter) to change its
+ *    behaviour. Disabled by default.
+ *
  *    Revision 1.67  2006/09/04 11:01:26  fabiankeil
  *    After filtering de-chunked instances, remove
  *    "Transfer-Encoding" header entirely instead of changing
  *    Revision 1.67  2006/09/04 11:01:26  fabiankeil
  *    After filtering de-chunked instances, remove
  *    "Transfer-Encoding" header entirely instead of changing
@@ -2906,6 +2912,7 @@ struct tm *parse_header_time(char *header, time_t *tm) {
    else
    {
       *tm = timegm(&gmt);
    else
    {
       *tm = timegm(&gmt);
+      timeptr=&gmt;
    }
    return(timeptr);
 }
    }
    return(timeptr);
 }