[mapserver-dev] mapserv 6.4.3 -nh is not working

Stephen Woodbridge woodbri at swoodbridge.com
Sat Nov 12 12:16:26 PST 2016


Hi Devs,

I have found a problem with 6.4.3 while debugging another issue in that 
-nh is not suppressing the 'Content-Type: image/png' header:


$ /usr/local/bin/mapserv -nh 
QUERY_STRING='MAP=./test.map&FORMAT=image%2Fpng&MAP_IMAGETYPE=agg_qn&LAYERS=Australia&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A900913&BBOX=12813560.707781,-2467980.3837369,12814292.234029,-2467467.4196173&WIDTH=1225&HEIGHT=859' 
 > junk.png
CGI Request 1 on process 14401
msDrawMap(): rendering using outputformat named agg_qn (AGG/PNG).
msDrawMap(): WMS/WFS set-up and query, 0.000s
msDrawMap(): Layer 0 (flats), 314.227s
msDrawLabelCache(): labelcache_map_edge_buffer = 20
msDrawMap(): Drawing Label Cache, 0.000s
msDrawMap() total time: 314.234s
msSaveImage(stdout) total time: 0.094s
mapserv request processing time (msLoadMap not incl.): 314.341s
msFreeMap(): freeing map at 0x10dade0.
freeLayer(): freeing layer at 0x10e78e0.

$ head -1 junk.png
Content-Type: image/png

$ /usr/local/bin/mapserv -v
MapServer version 6.4.3 OUTPUT=PNG OUTPUT=JPEG SUPPORTS=PROJ 
SUPPORTS=AGG SUPPORTS=FREETYPE SUPPORTS=CAIRO SUPPORTS=SVG_SYMBOLS 
SUPPORTS=SVGCAIRO SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER 
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WCS_SERVER 
SUPPORTS=FASTCGI SUPPORTS=GEOS INPUT=JPEG INPUT=POSTGIS INPUT=OGR 
INPUT=GDAL INPUT=SHAPEFILE

This is based on a clean build and install.

Can someone verify this or point me at the error in my ways. I'm happy 
to open an issue if you want one.

-Steve W

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



More information about the mapserver-dev mailing list