Skip to content

Commit

Permalink
HttpServerConnection: Log the user agent field for new requests too
Browse files Browse the repository at this point in the history
refs #7041
  • Loading branch information
Michael Friedrich committed Apr 5, 2019
1 parent b1042c3 commit f177d87
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/remote/httpserverconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,9 @@ void HttpServerConnection::ProcessMessages(boost::asio::yield_context yc)
Log(LogInformation, "HttpServerConnection")
<< "Request: " << request.method_string() << ' ' << request.target()
<< " (from " << m_PeerAddress
<< "), user: " << (authenticatedUser ? authenticatedUser->GetName() : "<unauthenticated>") << ')';
<< "), user: " << (authenticatedUser ? authenticatedUser->GetName() : "<unauthenticated>")
<< ", agent: " << request[http::field::user_agent] << ")."; //operator[] - Returns the value for a field, or "" if it does not exist.


if (!HandleAccessControl(*m_Stream, request, response, yc)) {
break;
Expand Down

0 comments on commit f177d87

Please sign in to comment.