Skip to content
Snippets Groups Projects
Commit 6d8ffa24 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

settings: Ensure client IP is correctly extracted from HTTP header

The X-Original-Forwarded-For header value has the following format:

  client[, proxy1, proxy2]

So ensure to handle all cases when extracting client IP from it to
avoid error when django-ratelimit processes a content view request.
parent 38204c22
No related branches found
No related tags found
Loading
Checking pipeline status
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment