Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make header checking case insensitive
  • Loading branch information
uclaros authored and nyalldawson committed Sep 22, 2022
1 parent 1cbc8d8 commit ba13472
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/network/qgsnetworkreply.cpp
Expand Up @@ -51,7 +51,7 @@ bool QgsNetworkReplyContent::hasRawHeader( const QByteArray &headerName ) const
{
for ( auto &header : mRawHeaderPairs )
{
if ( header.first == headerName )
if ( ! QString::fromLocal8Bit( header.first ).compare( QString::fromLocal8Bit( headerName ), Qt::CaseInsensitive ) )
return true;
}
return false;
Expand All @@ -72,7 +72,7 @@ QByteArray QgsNetworkReplyContent::rawHeader( const QByteArray &headerName ) con
{
for ( auto &header : mRawHeaderPairs )
{
if ( header.first == headerName )
if ( ! QString::fromLocal8Bit( header.first ).compare( QString::fromLocal8Bit( headerName ), Qt::CaseInsensitive ) )
return header.second;
}
return QByteArray();
Expand Down

0 comments on commit ba13472

Please sign in to comment.