mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Slightly adjust logic for discarding headers; this shouldn't try to throw away empty headers anymore.
This commit is contained in:
@@ -69,7 +69,7 @@ class RemoteUser( object ):
|
||||
assert self.remote_user_header not in environ
|
||||
environ[ self.remote_user_header ] = self.single_user
|
||||
|
||||
if environ.get(self.remote_user_header, '(null)').startswith('(null)'):
|
||||
if environ.get(self.remote_user_header, '').startswith('(null)'):
|
||||
# Throw away garbage headers.
|
||||
# Apache sets REMOTE_USER to the string '(null)' when using the
|
||||
# Rewrite* method for passing REMOTE_USER and a user is not authenticated.
|
||||
|
||||
Reference in New Issue
Block a user