Skip to content
Permalink
Browse files

Merge pull request #34888 from elpaso/server-standalone-bugfixes

Server standalone bugfixes
  • Loading branch information
elpaso authored and nyalldawson committed Mar 6, 2020
1 parent 54e3804 commit 716349af9f8ede9131b82820dadc46d5f639bbe5
Showing with 9 additions and 7 deletions.
  1. +9 −7 src/server/qgis_mapserver.cpp
@@ -353,7 +353,7 @@ int main( int argc, char *argv[] )
const int headerColonPos { headerLine.indexOf( ':' ) };
if ( headerColonPos > 0 )
{
headers.insert( headerLine.left( headerColonPos ), headerLine.mid( headerColonPos + 1 ) );
headers.insert( headerLine.left( headerColonPos ), headerLine.mid( headerColonPos + 2 ) );
}
}

@@ -402,12 +402,14 @@ int main( int argc, char *argv[] )

// 10.185.248.71 [09/Jan/2015:19:12:06 +0000] 808840 <time> "GET / HTTP/1.1" 500"
std::cout << QStringLiteral( "%1 [%2] %3 %4ms \"%5\" %6" )
.arg( clientConnection->peerAddress().toString() )
.arg( QDateTime::currentDateTime().toString() )
.arg( body.size() )
.arg( std::chrono::duration_cast<std::chrono::milliseconds>( elapsedTime ).count() )
.arg( firstLinePieces.join( ' ' ) )
.arg( response.statusCode() ).toStdString() << std::endl;
.arg( clientConnection->peerAddress().toString(),
QDateTime::currentDateTime().toString(),
QString::number( body.size() ),
QString::number( std::chrono::duration_cast<std::chrono::milliseconds>( elapsedTime ).count() ),
firstLinePieces.join( ' ' ),
QString::number( response.statusCode() ) )
.toStdString()
<< std::endl;

clientConnection->disconnectFromHost();
}

0 comments on commit 716349a

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