#NEWLINE# def __call__( self , environ , start_response ) : #NEWLINE# #INDENT# domain = environ . get ( 'HTTP_HOST' , '' ) #NEWLINE# if self . use_x_forwarded_host : #NEWLINE# #INDENT# domain = environ . get ( 'HTTP_X_FORWARDED_HOST' , domain ) #NEWLINE# #UNINDENT# nextapp = self . domains . get ( domain ) #NEWLINE# if ( nextapp is None ) : #NEWLINE# #INDENT# nextapp = self . default #NEWLINE# #UNINDENT# return nextapp ( environ , start_response )