[MapProxy] content-type bug?
deduikertjes at xs4all.nl
Fri Dec 14 04:54:33 PST 2012
Yesterday I ran into problems with the xsl transformation of getfeatureinfo
requests on a wms service.
Mapproxy fails to do an xsl transformation and an error shows up in the logs:
line 31, in as_etree
I tracked the problem down to the following:
The wms service responds to WMS-requests containing
info_format=application/vnd.ogc.gml with a http response header which
If I change a line in featureinfo.py to:
def create_featureinfo_doc(content, info_format):
if info_format in ('text/xml',
if info_format == 'text/html':
then everything works fine.
Is this a small bug in mapproxy or does the server send wrong headers?
I'm not a standards expert by any means, but from
http://www.htmlhelp.com/tools/validator/charset.html.en I get the
impression that sending a charset like the server at hand does is not
wrong or at least not uncommon.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the MapProxy