Skip to content

Commit 06aad16

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server/qgshttprequesthandler.cpp

Lines changed: 1 addition & 1 deletion
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)