Skip to content

Commit

Permalink
Set content also when there is no buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Dec 7, 2021
1 parent dfee289 commit c62a255
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/network/qgsnetworkaccessmanager.cpp
Expand Up @@ -353,6 +353,11 @@ QNetworkReply *QgsNetworkAccessManager::createRequest( QNetworkAccessManager::Op
{
content = buffer->buffer();
}
else if ( outgoingData )
{
content = outgoingData->readAll();
outgoingData->seek( 0 );
}

emit requestAboutToBeCreated( QgsNetworkRequestParameters( op, req, requestId, content ) );
Q_NOWARN_DEPRECATED_PUSH
Expand Down

0 comments on commit c62a255

Please sign in to comment.