Skip to content

Commit d09d71f

Browse files
committed
[BUGFIX][QGIS Server] Add charset for application/vnd.ogc.gml GetFeatureInfo
1 parent baaf570 commit d09d71f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/qgshttprequesthandler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void QgsHttpRequestHandler::sendHeaders()
112112
QgsDebugMsg( QString( "Content format: %1" ).arg( mInfoFormat ) );
113113
printf( "Content-Type: " );
114114
printf( mInfoFormat.toLocal8Bit() );
115-
if ( mInfoFormat.startsWith( "text/" ) )
115+
if ( mInfoFormat.startsWith( "text/" ) || mInfoFormat.startsWith( "application/vnd.ogc.gml" ) )
116116
printf( "; charset=utf-8" );
117117
printf( "\n" );
118118
// size is not known when streaming

0 commit comments

Comments
 (0)