Skip to content
Permalink
Browse files

Fixes wrong number of bytes logged when debug activated.

Funded by ItOpen - QGIS Borg - Resistance Is Futile
  • Loading branch information
elpaso committed Nov 26, 2014
1 parent b7c7422 commit 5b943ed3c0c99b7cfed360f115a35bb4ac965db3
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/mapserver/qgshttprequesthandler.cpp
@@ -138,8 +138,12 @@ void QgsHttpRequestHandler::sendHeaders()

void QgsHttpRequestHandler::sendBody() const
{
fwrite(( void* )mBody.data(), mBody.size(), 1, FCGI_stdout );
QgsDebugMsg( QString( "Sent %1 bytes" ).arg( mBody.size() ) );
size_t result = fwrite( (void*)mBody.data(), mBody.size(), 1, FCGI_stdout );
#ifdef QGISDEBUG
QgsDebugMsg( QString( "Sent %1 blocks of %2 bytes" ).arg( result, mBody.size() ) );
#else
Q_UNUSED( result );
#endif
}

void QgsHttpRequestHandler::sendResponse()

0 comments on commit 5b943ed

Please sign in to comment.
You can’t perform that action at this time.