[mapserver-commits] r12918 - trunk/mapserver/mapcache/src

svn at osgeo.org svn at osgeo.org
Sat Dec 24 06:53:09 EST 2011


Author: tbonfort
Date: 2011-12-24 03:53:09 -0800 (Sat, 24 Dec 2011)
New Revision: 12918

Modified:
   trunk/mapserver/mapcache/src/core.c
Log:
remove some headers that should not be sent back to the client


Modified: trunk/mapserver/mapcache/src/core.c
===================================================================
--- trunk/mapserver/mapcache/src/core.c	2011-12-23 17:52:13 UTC (rev 12917)
+++ trunk/mapserver/mapcache/src/core.c	2011-12-24 11:53:09 UTC (rev 12918)
@@ -464,6 +464,9 @@
        /* the http request was successful, but the server returned an error */
        ctx->clear_errors(ctx);
     }
+    /*remove some headers that should not be sent back to the client*/
+    apr_table_unset(response->headers,"Transfer-Encoding");
+    apr_table_unset(response->headers,"Connection");
     return response;
 }
 



More information about the mapserver-commits mailing list