Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove dead code.

  • Loading branch information...
commit 6a550521c1584d3c55498de2855dacb34836c8e3 1 parent 96200d8
@aaugustin aaugustin authored
Showing with 0 additions and 16 deletions.
  1. +0 −16 django_website/middleware.py
View
16 django_website/middleware.py
@@ -1,16 +0,0 @@
-class SetRemoteAddr(object):
- """
- Set the remote addr to the actual real IP, not the IP of the load
- balancer. This assumes running behind Nginx with something like::
-
- location / {
- proxy_pass http://localhost:8000;
- proxy_set_header X-Real-IP $remote_addr;
- }
- """
-
- def process_request(self, request):
- try:
- request.META['REMOTE_ADDR'] = request.META['HTTP_X_REAL_IP']
- except KeyError:
- pass
Please sign in to comment.
Something went wrong with that request. Please try again.