Skip to content
Permalink
Browse files

Send exception in case of unknown feature info format

  • Loading branch information
mhugent committed Sep 28, 2011
1 parent 869224d commit c5d1f7a479c0eafbb1b1f038e61141116b5ec6da
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/mapserver/qgshttprequesthandler.cpp
@@ -235,7 +235,8 @@ void QgsHttpRequestHandler::sendGetFeatureInfoResponse( const QDomDocument& info
}
else //unsupported format, send exception
{
//todo: send service exception
sendServiceException( QgsMapServiceException( "InvalidFormat", "Feature info format '" + mFormat + "' is not supported. Possibilities are 'text/plain', 'text/html' or 'text/xml'." ) );
return;
}

sendHttpResponse( &ba, infoFormat );

0 comments on commit c5d1f7a

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