1. Tarek Ziadé
  2. proxy-pof

Commits

Tarek Ziadé  committed cf94b25

proxying the auth

  • Participants
  • Parent commits 9bfcfdd
  • Branches default

Comments (0)

Files changed (1)

File proxy.py

View file
             netloc = config['netloc']
             path = request.environ['PATH_INFO']
             print 'Proxying to %s://%s/%s' % (scheme, netloc, path)
+            if 'HTTP_AUTHORIZATION' in request.environ:
+                request._authorization = request.environ['HTTP_AUTHORIZATION']
             response = proxy(request, scheme, netloc, timeout=5)
             _DATA[str(request)] = response
             _DATA.sync()