mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	server: add charset utf-8 to content type of responses in text/ format
This commit is contained in:
		
							parent
							
								
									0954a20373
								
							
						
					
					
						commit
						da0822c588
					
				@ -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 )
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user