Fixed path_info formatting.

This commit is contained in:
Jack Sullivan 2017-04-26 09:37:11 -07:00
parent 082c6ac35d
commit 98b82dd27d

View file

@ -45,6 +45,8 @@ if BEHIND_REVERSE_PROXY:
def get_client_str(username, ip_address, user_agent=None, path_info=None):
if VERBOSE:
if isinstance(path_info, tuple):
path_info = path_info[0]
details = "{{user: '{0}', ip: '{1}', user-agent: '{2}', path: '{3}'}}"
return details.format(username, ip_address, user_agent, path_info)