Skip to content

Commit

Permalink
Send exception in case of unknown feature info format
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Sep 28, 2011
1 parent 869224d commit c5d1f7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mapserver/qgshttprequesthandler.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit c5d1f7a

Please sign in to comment.