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

svn at osgeo.org svn at osgeo.org
Fri Aug 26 07:32:01 EDT 2011


Author: tbonfort
Date: 2011-08-26 04:32:01 -0700 (Fri, 26 Aug 2011)
New Revision: 12493

Modified:
   trunk/mapserver/mapcache/src/core.c
Log:


Modified: trunk/mapserver/mapcache/src/core.c
===================================================================
--- trunk/mapserver/mapcache/src/core.c	2011-08-26 11:31:56 UTC (rev 12492)
+++ trunk/mapserver/mapcache/src/core.c	2011-08-26 11:32:01 UTC (rev 12493)
@@ -261,8 +261,9 @@
          http->url = apr_pstrcat(ctx->pool,http->url,"/",req_proxy->pathinfo,NULL);
     }
     geocache_http_do_request_with_params(ctx,http,req_proxy->params,response->data,response->headers,&response->code);
-    if(response->code !=200 && GC_HAS_ERROR(ctx)) {
-      ctx->clear_errors(ctx);
+    if(response->code !=0 && GC_HAS_ERROR(ctx)) {
+       /* the http request was successful, but the server returned an error */
+       ctx->clear_errors(ctx);
     }
     return response;
 }



More information about the mapserver-commits mailing list