Skip to content

Commit

Permalink
Clear response on each request (in case it was recycled)
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jun 26, 2020
1 parent 4961ccc commit cd967e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/qgsserver.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit cd967e5

Please sign in to comment.