Skip to content

Commit

Permalink
Update api-server.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rahimkhoja authored Jan 4, 2022
1 parent eab1800 commit 3654fe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/share/jupyter-canvas-api/api-server.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def slugify(value, allow_unicode=False):
def not_authorized(e):
""" Response sent back when not authorized. """
if request.headers.getlist("X-Forwarded-For"):
client_ip_address = str(request.headers.getlist("X-Forwarded-For").split(','))
client_ip_address = str(request.headers.getlist("X-Forwarded-For"))
else:
client_ip_address = request.remote_addr
logger.error("Invalid Authentication from IP: "+str(client_ip_address))
Expand Down

0 comments on commit 3654fe3

Please sign in to comment.