Commit a83d380c authored by Andreas Jung's avatar Andreas Jung

removed auth code

parent 61ac6cf7
...@@ -442,18 +442,6 @@ class FCGIChannel(asynchat.async_chat): ...@@ -442,18 +442,6 @@ class FCGIChannel(asynchat.async_chat):
referer=self.get_header('referer') referer=self.get_header('referer')
if not referer: referer='' if not referer: referer=''
auth=self.get_header('Authorization')
name='Anonymous'
if auth is not None:
if string.lower(auth[:6]) == 'basic ':
try: decoded=base64.decodestring(auth[6:])
except base64.binascii.Error: decoded=''
t = string.split(decoded, ':', 1)
if len(t) < 2:
name = 'Unknown (bad auth string)'
else:
name = t[0]
if self.env.has_key('PATH_INFO'): if self.env.has_key('PATH_INFO'):
path=self.env['PATH_INFO'] path=self.env['PATH_INFO']
else: else:
......
...@@ -442,18 +442,6 @@ class FCGIChannel(asynchat.async_chat): ...@@ -442,18 +442,6 @@ class FCGIChannel(asynchat.async_chat):
referer=self.get_header('referer') referer=self.get_header('referer')
if not referer: referer='' if not referer: referer=''
auth=self.get_header('Authorization')
name='Anonymous'
if auth is not None:
if string.lower(auth[:6]) == 'basic ':
try: decoded=base64.decodestring(auth[6:])
except base64.binascii.Error: decoded=''
t = string.split(decoded, ':', 1)
if len(t) < 2:
name = 'Unknown (bad auth string)'
else:
name = t[0]
if self.env.has_key('PATH_INFO'): if self.env.has_key('PATH_INFO'):
path=self.env['PATH_INFO'] path=self.env['PATH_INFO']
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment