Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
server: add charset utf-8 to content type of responses in text/ format
  • Loading branch information
jef-n committed Feb 17, 2015
1 parent 0954a20 commit da0822c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/qgshttprequesthandler.cpp
Expand Up @@ -112,6 +112,8 @@ void QgsHttpRequestHandler::sendHeaders()
QgsDebugMsg( QString( "Content format: %1" ).arg( mInfoFormat ) );
printf( "Content-Type: " );
printf( mInfoFormat.toLocal8Bit() );
if ( mInfoFormat.startsWith( "text/" ) )
printf( "; charset=utf-8" );
printf( "\n" );
// size is not known when streaming
if ( mBody.size() > 0 )
Expand Down

0 comments on commit da0822c

Please sign in to comment.