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

svn at osgeo.org svn at osgeo.org
Mon Dec 26 07:43:32 EST 2011


Author: tbonfort
Date: 2011-12-26 04:43:31 -0800 (Mon, 26 Dec 2011)
New Revision: 12919

Modified:
   trunk/mapserver/mapcache/src/mod_mapcache.c
Log:
build libmapcache library, link against libmapserver.la


Modified: trunk/mapserver/mapcache/src/mod_mapcache.c
===================================================================
--- trunk/mapserver/mapcache/src/mod_mapcache.c	2011-12-24 11:53:09 UTC (rev 12918)
+++ trunk/mapserver/mapcache/src/mod_mapcache.c	2011-12-26 12:43:31 UTC (rev 12919)
@@ -284,6 +284,14 @@
       http_response = mapcache_core_get_tile(global_ctx,req_tile);
    } else if( request->type == MAPCACHE_REQUEST_PROXY ) {
       mapcache_request_proxy *req_proxy = (mapcache_request_proxy*)request;
+      char *url;
+      request_rec *original;
+      if(r->main)
+         original = r->main;
+      else
+         original = r;
+      url = ap_construct_url(r->pool,original->uri,original);
+      apr_table_add(req_proxy->params,"url",url);
       http_response = mapcache_core_proxy_request(global_ctx, req_proxy);
    } else if( request->type == MAPCACHE_REQUEST_GET_MAP) {
       mapcache_request_get_map *req_map = (mapcache_request_get_map*)request;



More information about the mapserver-commits mailing list