Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[BUGFIX][QGIS Server] Add charset for application/vnd.ogc.gml GetFeat…
…ureInfo
  • Loading branch information
rldhont committed Feb 24, 2016
1 parent ebab36a commit 06aad16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/qgshttprequesthandler.cpp
Expand Up @@ -112,7 +112,7 @@ void QgsHttpRequestHandler::sendHeaders()
QgsDebugMsg( QString( "Content format: %1" ).arg( mInfoFormat ) );
printf( "Content-Type: " );
printf( mInfoFormat.toLocal8Bit() );
if ( mInfoFormat.startsWith( "text/" ) )
if ( mInfoFormat.startsWith( "text/" ) || mInfoFormat.startsWith( "application/vnd.ogc.gml" ) )
printf( "; charset=utf-8" );
printf( "\n" );
// size is not known when streaming
Expand Down

0 comments on commit 06aad16

Please sign in to comment.