[BUGFIX][QGIS Server] Add charset for application/vnd.ogc.gml GetFeatureInfo

This commit is contained in:
rldhont 2016-02-24 13:58:28 +01:00
parent f028c0bb58
commit 395bae6fae

View File

@ -77,7 +77,7 @@ void QgsHttpRequestHandler::setDefaultHeaders()
{
//format
QString format = mInfoFormat;
if ( mInfoFormat.startsWith( "text/" ) )
if ( mInfoFormat.startsWith( "text/" ) || mInfoFormat.startsWith( "application/vnd.ogc.gml" ) )
{
format.append( "; charset=utf-8" );
}