Skip to content

Commit

Permalink
Merge pull request #21 from Moesif/fix-client-ip
Browse files Browse the repository at this point in the history
Fix: Remove Client Ip headers encoding
  • Loading branch information
dgilling committed Apr 6, 2019
2 parents b764dcd + 7f59983 commit d084486
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion moesifdjango/client_ip.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ def is_ip(value):

def get_client_ip_from_x_forwarded_for(value):
try:
value = value.encode('utf-8')

if not value or value is None:
return None
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version='1.5.1',
version='1.5.2',

description='Moesif Middleware for Python Django',
long_description=long_description,
Expand Down

0 comments on commit d084486

Please sign in to comment.