Skip to content

Commit

Permalink
Improve format test
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Apr 13, 2013
1 parent 76d1f95 commit 48a67a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mapserver/qgshttprequesthandler.cpp
Expand Up @@ -99,7 +99,7 @@ void QgsHttpRequestHandler::sendGetMapResponse( const QString& service, QImage*
bool png8Bit = ( mFormat.compare( "image/png; mode=8bit", Qt::CaseInsensitive ) == 0 );
bool png1Bit = ( mFormat.compare( "image/png; mode=1bit", Qt::CaseInsensitive ) == 0 );
bool isBase64 = mFormatString.endsWith( ";base64", Qt::CaseInsensitive );
if ( mFormat != "PNG" && mFormat != "JPG" && !png8Bit && !png1Bit && !isBase64 )
if ( mFormat != "PNG" && mFormat != "JPG" && !png8Bit && !png1Bit )
{
QgsDebugMsg( "service exception - incorrect image format requested..." );
sendServiceException( QgsMapServiceException( "InvalidFormat", "Output format '" + mFormat + "' is not supported in the GetMap request" ) );
Expand Down

0 comments on commit 48a67a6

Please sign in to comment.