Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Sep 7, 2015
1 parent 33cbe22 commit 5881008
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/server/qgshttprequesthandler.cpp
Expand Up @@ -220,6 +220,7 @@ void QgsHttpRequestHandler::sendResponse()

QPair<QByteArray, QByteArray> QgsHttpRequestHandler::getResponse()
{
// TODO: check that this is not an evil bug!
QPair<QByteArray, QByteArray> response( mResponseHeader, mResponseBody );
return response;
}
Expand Down
4 changes: 2 additions & 2 deletions src/server/qgsserver.cpp
Expand Up @@ -566,8 +566,8 @@ QPair<QByteArray, QByteArray> QgsServer::handleRequest( const QString queryStrin
if ( logLevel < 1 )
{
QgsMessageLog::logMessage( "Request finished in " + QString::number( time.elapsed() ) + " ms", "Server", QgsMessageLog::INFO );
}
// Returns the header and response bytestreams
}
// Returns the header and response bytestreams (to be used in Python bindings)
return theRequestHandler->getResponse( );
}

Expand Down

0 comments on commit 5881008

Please sign in to comment.