Skip to content
Permalink
Browse files

Fix wms server format test

  • Loading branch information
mhugent committed Apr 13, 2013
1 parent 48a67a6 commit b65c463bb2eb890c3a7b4b19963798bcc20b0ef9
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/mapserver/qgshttprequesthandler.cpp
@@ -425,11 +425,11 @@ void QgsHttpRequestHandler::requestStringToParameterMap( const QString& request,
QgsDebugMsg( QString( "formatString is: %1" ).arg( formatString ) );

//remove the image/ in front of the format
if ( formatString.contains( "image/png", Qt::CaseInsensitive ) == 0 || formatString.compare( "png", Qt::CaseInsensitive ) == 0 )
if ( formatString.contains( "image/png", Qt::CaseInsensitive ) || formatString.compare( "png", Qt::CaseInsensitive ) == 0 )
{
formatString = "PNG";
}
else if ( formatString.contains( "image/jpeg", Qt::CaseInsensitive ) == 0 || formatString.contains( "image/jpg", Qt::CaseInsensitive ) == 0
else if ( formatString.contains( "image/jpeg", Qt::CaseInsensitive ) || formatString.contains( "image/jpg", Qt::CaseInsensitive )
|| formatString.compare( "jpg", Qt::CaseInsensitive ) == 0 )
{
formatString = "JPG";
@@ -438,7 +438,7 @@ void QgsHttpRequestHandler::requestStringToParameterMap( const QString& request,
{
formatString = "SVG";
}
else if ( formatString.contains( "pdf", Qt::CaseInsensitive ) == 0 )
else if ( formatString.contains( "pdf", Qt::CaseInsensitive ) )
{
formatString = "PDF";
}

0 comments on commit b65c463

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