Skip to content

Commit

Permalink
Remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Oct 5, 2015
1 parent 100ed41 commit 973e701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/web/framework/middleware/remoteuser.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def __call__( self, environ, start_response ):
access Galaxy.
"""
return self.error( start_response, title, message )

if not safe_str_cmp(environ.get('HTTP_GX_SECRET'), self.config_secret_header):
title = "Access to Galaxy is denied"
message = """
Expand All @@ -102,7 +102,7 @@ def __call__( self, environ, start_response ):
access Galaxy.
"""
return self.error( start_response, title, message )

if not environ.get(self.remote_user_header, '(null)').startswith('(null)'):
if not environ[ self.remote_user_header ].count( '@' ):
if self.maildomain is not None:
Expand Down

0 comments on commit 973e701

Please sign in to comment.