Skip to content
Permalink
Browse files

[server] Fix wrong debug output name and added HTTP_AUTHORIZATION

  • Loading branch information
elpaso committed Jan 12, 2017
1 parent c9a8e5b commit c484742eb75a3efc5b33aec1f958817ee9711462
Showing with 8 additions and 4 deletions.
  1. +8 −4 src/server/qgsserver.cpp
@@ -158,18 +158,18 @@ void QgsServer::printRequestParameters( const QMap< QString, QString>& parameter
*/
void QgsServer::printRequestInfos()
{
QgsMessageLog::logMessage( QStringLiteral( "********************new request***************" ), QStringLiteral( "Server" ), QgsMessageLog::INFO );
QgsMessageLog::logMessage( QStringLiteral( "******************** New request ***************" ), QStringLiteral( "Server" ), QgsMessageLog::INFO );
if ( getenv( "REMOTE_ADDR" ) )
{
QgsMessageLog::logMessage( "remote ip: " + QString( getenv( "REMOTE_ADDR" ) ), QStringLiteral( "Server" ), QgsMessageLog::INFO );
QgsMessageLog::logMessage( "REMOTE_ADDR: " + QString( getenv( "REMOTE_ADDR" ) ), QStringLiteral( "Server" ), QgsMessageLog::INFO );
}
if ( getenv( "REMOTE_HOST" ) )
{
QgsMessageLog::logMessage( "remote ip: " + QString( getenv( "REMOTE_HOST" ) ), QStringLiteral( "Server" ), QgsMessageLog::INFO );
QgsMessageLog::logMessage( "REMOTE_HOST: " + QString( getenv( "REMOTE_HOST" ) ), QStringLiteral( "Server" ), QgsMessageLog::INFO );
}
if ( getenv( "REMOTE_USER" ) )
{
QgsMessageLog::logMessage( "remote user: " + QString( getenv( "REMOTE_USER" ) ), QStringLiteral( "Server" ), QgsMessageLog::INFO );
QgsMessageLog::logMessage( "REMOTE_USER: " + QString( getenv( "REMOTE_USER" ) ), QStringLiteral( "Server" ), QgsMessageLog::INFO );
}
if ( getenv( "REMOTE_IDENT" ) )
{
@@ -199,6 +199,10 @@ void QgsServer::printRequestInfos()
{
QgsMessageLog::logMessage( "NO_PROXY: " + QString( getenv( "NO_PROXY" ) ), QStringLiteral( "Server" ), QgsMessageLog::INFO );
}
if ( getenv( "HTTP_AUTHORIZATION" ) )
{
QgsMessageLog::logMessage( "HTTP_AUTHORIZATION: " + QString( getenv( "HTTP_AUTHORIZATION" ) ), QStringLiteral( "Server" ), QgsMessageLog::INFO );
}
}

/**

5 comments on commit c484742

@rldhont

This comment has been minimized.

Copy link
Contributor

@rldhont rldhont replied Jan 13, 2017

Has to be backported ?

@elpaso

This comment has been minimized.

Copy link
Contributor Author

@elpaso elpaso replied Jan 13, 2017

@rldhont I don't know if it worth, it's just all about debug info: fixing typos and adding HTTP_AUTHORIZATION to the list of debug infos. Line 168 was plain wrong though and could be considered as a bug.
BTW, backporting would be harmless and straightforward.

@rldhont

This comment has been minimized.

Copy link
Contributor

@rldhont rldhont replied Jan 13, 2017

@elpaso I will do it

@elpaso

This comment has been minimized.

Copy link
Contributor Author

@elpaso elpaso replied Jan 13, 2017

Thanks!

@rldhont

This comment has been minimized.

Copy link
Contributor

@rldhont rldhont replied Jan 13, 2017

Done

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