Clear response on each request (in case it was recycled)

This commit is contained in:
Alessandro Pasotti 2020-06-26 11:56:33 +02:00
parent 4961ccc5d3
commit cd967e5405

View File

@ -306,6 +306,8 @@ void QgsServer::handleRequest( QgsServerRequest &request, QgsServerResponse &res
time.start();
}
response.clear();
// Pass the filters to the requestHandler, this is needed for the following reasons:
// Allow server request to call sendResponse plugin hook if enabled
QgsFilterResponseDecorator responseDecorator( sServerInterface->filters(), response );