Skip to content
Permalink
Browse files
Fix backport
  • Loading branch information
sbrunner committed Jan 14, 2022
1 parent 273d7ec commit 2b175528f054e6ba209ed6444de1c40b5bf9bc17
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/server/qgsfcgiserverrequest.cpp
  2. +1 −1 src/server/qgsserverrequest.cpp
@@ -111,7 +111,7 @@ QgsFcgiServerRequest::QgsFcgiServerRequest()
for ( const auto &headerKey : qgsEnumMap<QgsServerRequest::RequestHeader>().values() )
{
const QString headerName = QgsStringUtils::capitalize(
QString( headerKey ).replace( QLatin1Char( '_' ), QLatin1Char( ' ' ) ), Qgis::Capitalization::TitleCase
QString( headerKey ).replace( QLatin1Char( '_' ), QLatin1Char( ' ' ) ), QgsStringUtils::Capitalization::TitleCase
).replace( QLatin1Char( ' ' ), QLatin1Char( '-' ) );
const char *result = getenv( QStringLiteral( "HTTP_%1" ).arg( headerKey ).toStdString().c_str() );
if ( result && strlen( result ) > 0 )
@@ -63,7 +63,7 @@ QString QgsServerRequest::header( const QgsServerRequest::RequestHeader &headerE
{
const QString headerKey = QString( qgsEnumValueToKey<QgsServerRequest::RequestHeader>( headerEnum ) );
const QString headerName = QgsStringUtils::capitalize(
QString( headerKey ).replace( QLatin1Char( '_' ), QLatin1Char( ' ' ) ), Qgis::Capitalization::TitleCase
QString( headerKey ).replace( QLatin1Char( '_' ), QLatin1Char( ' ' ) ), QgsStringUtils::Capitalization::TitleCase
).replace( QLatin1Char( ' ' ), QLatin1Char( '-' ) );
return header( headerName );
}

0 comments on commit 2b17552

Please sign in to comment.