Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix backport
  • Loading branch information
sbrunner committed Jan 14, 2022
1 parent 273d7ec commit 2b17552
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/qgsfcgiserverrequest.cpp
Expand Up @@ -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 )
Expand Down
2 changes: 1 addition & 1 deletion src/server/qgsserverrequest.cpp
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 2b17552

Please sign in to comment.