Skip to content
Permalink
Browse files

Improve format test

  • Loading branch information
mhugent committed Apr 13, 2013
1 parent 76d1f95 commit 48a67a63d87140dd21fdf8a76bf7cb7ace320310
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mapserver/qgshttprequesthandler.cpp
@@ -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" ) );

0 comments on commit 48a67a6

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