[mapserver-commits] r12352 - trunk/mapserver/mapcache/src
svn at osgeo.org
svn at osgeo.org
Fri Aug 26 07:19:02 EDT 2011
Author: tbonfort
Date: 2011-08-26 04:19:01 -0700 (Fri, 26 Aug 2011)
New Revision: 12352
Modified:
trunk/mapserver/mapcache/src/fastcgi_geocache.c
Log:
fix segfault due to missing format mimetype
thomas.bonfort | 2011-04-22 13:36:56 +0200 (Fri, 22 Apr 2011)
Modified: trunk/mapserver/mapcache/src/fastcgi_geocache.c
===================================================================
--- trunk/mapserver/mapcache/src/fastcgi_geocache.c 2011-08-26 11:18:57 UTC (rev 12351)
+++ trunk/mapserver/mapcache/src/fastcgi_geocache.c 2011-08-26 11:19:01 UTC (rev 12352)
@@ -174,10 +174,7 @@
static int geocache_fcgi_write_image_buffer(geocache_context_fcgi_request *ctx, geocache_buffer *im,
geocache_image_format *format) {
if(format && format->mime_type) {
- if(!strcmp(format->extension,"png"))
- FCGX_FPrintF(ctx->out,"Content-type: image/png\r\n\r\n");
- else
- FCGX_FPrintF(ctx->out,"Content-type: image/jpeg\r\n\r\n");
+ FCGX_FPrintF(ctx->out,"Content-type: %s\r\n\r\n", format->mime_type);
} else {
geocache_image_format_type t = geocache_imageio_header_sniff((geocache_context*)ctx,im);
if(t == GC_PNG)
More information about the mapserver-commits
mailing list