Skip to content

Commit c5d1f7a

Browse files
committed
Send exception in case of unknown feature info format
1 parent 869224d commit c5d1f7a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/mapserver/qgshttprequesthandler.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@ void QgsHttpRequestHandler::sendGetFeatureInfoResponse( const QDomDocument& info
235235
}
236236
else //unsupported format, send exception
237237
{
238-
//todo: send service exception
238+
sendServiceException( QgsMapServiceException( "InvalidFormat", "Feature info format '" + mFormat + "' is not supported. Possibilities are 'text/plain', 'text/html' or 'text/xml'." ) );
239+
return;
239240
}
240241

241242
sendHttpResponse( &ba, infoFormat );

0 commit comments

Comments
 (0)