httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From minf...@apache.org
Subject cvs commit: httpd-proxy/module-2.0 proxy_http.c
Date Thu, 19 Apr 2001 21:18:43 GMT
minfrin     01/04/19 14:18:42

  Modified:    .        CHANGES
               module-2.0 proxy_http.c
  Log:
  Made sure dates were canonicalised correctly when passed to the client
  browser through the HTTP proxy.
  
  Revision  Changes    Path
  1.27      +4 -0      httpd-proxy/CHANGES
  
  Index: CHANGES
  ===================================================================
  RCS file: /home/cvs/httpd-proxy/CHANGES,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- CHANGES	2001/04/15 17:15:28	1.26
  +++ CHANGES	2001/04/19 21:18:39	1.27
  @@ -1,6 +1,10 @@
   
   mod_proxy changes for 2.0.15 current
   
  +  *) Made sure dates were canonicalised correctly when passed to the client
  +     browser through the HTTP proxy.
  +     [Graham Leggett <minfrin@sharp.fm>]
  +
     *) Split each individual proxy protocol into separate modules.
        [Graham Leggett <minfrin@sharp.fm>]
   
  
  
  
  1.62      +14 -0     httpd-proxy/module-2.0/proxy_http.c
  
  Index: proxy_http.c
  ===================================================================
  RCS file: /home/cvs/httpd-proxy/module-2.0/proxy_http.c,v
  retrieving revision 1.61
  retrieving revision 1.62
  diff -u -r1.61 -r1.62
  --- proxy_http.c	2001/04/15 17:15:29	1.61
  +++ proxy_http.c	2001/04/19 21:18:41	1.62
  @@ -705,6 +705,20 @@
   	close += 1;
       }
   
  +    /* we must accept 3 kinds of date, but generate only 1 kind of date */
  +    {
  +	const char *buf;
  +        if ((buf = apr_table_get(r->headers_out, "Date")) != NULL) {
  +	    apr_table_set(r->headers_out, "Date", ap_proxy_date_canon(p, buf));
  +	}
  +        if ((buf = apr_table_get(r->headers_out, "Expires")) != NULL) {
  +	    apr_table_set(r->headers_out, "Expires", ap_proxy_date_canon(p, buf));
  +	}
  +        if ((buf = apr_table_get(r->headers_out, "Last-Modified")) != NULL) {
  +	    apr_table_set(r->headers_out, "Last-Modified", ap_proxy_date_canon(p, buf));
  +	}
  +    }
  +
       /* munge the Location and URI response headers according to ProxyPassReverse */
       {
   	const char *buf;
  
  
  

Mime
View raw message