Skip to content
Permalink
Browse files

fixes #16587

  • Loading branch information
saberraz authored and nyalldawson committed Sep 23, 2018
1 parent 8cf75e4 commit 87aa9320415ba21e0766d4d132ce190a56538a0a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/wms/qgswmsprovider.cpp
@@ -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();

0 comments on commit 87aa932

Please sign in to comment.
You can’t perform that action at this time.