Skip to content

Commit

Permalink
fixes #16587
Browse files Browse the repository at this point in the history
  • Loading branch information
saberraz authored and nyalldawson committed Sep 23, 2018
1 parent 8cf75e4 commit 87aa932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/wms/qgswmsprovider.cpp
Expand Up @@ -3884,7 +3884,7 @@ void QgsWmsTiledImageDownloadHandler::tileReplyFinished()

QString contentType = reply->header( QNetworkRequest::ContentTypeHeader ).toString();
QgsDebugMsg( "contentType: " + contentType );
if ( !contentType.startsWith( QLatin1String( "image/" ), Qt::CaseInsensitive ) &&
if ( !contentType.isEmpty() && !contentType.startsWith( QLatin1String( "image/" ), Qt::CaseInsensitive ) &&
contentType.compare( QLatin1String( "application/octet-stream" ), Qt::CaseInsensitive ) != 0 )
{
QByteArray text = reply->readAll();
Expand Down

0 comments on commit 87aa932

Please sign in to comment.