Skip to content
Permalink
Browse files

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 da0822c588e33c51108e33450f1f61cf3674177f
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/server/qgshttprequesthandler.cpp
@@ -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 )

0 comments on commit da0822c

Please sign in to comment.
You can’t perform that action at this time.