Show
Ignore:
Timestamp:
07/09/08 11:51:16 (5 months ago)
Author:
nick
Message:

Applying patch from #317

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pyamf/branches/server-name-317-2/pyamf/remoting/gateway/wsgi.py

    r1486 r1495  
    6161            ('Content-Type', 'text/plain'), 
    6262            ('Content-Length', str(len(response))), 
     63            ('Server', gateway.SERVER_NAME), 
    6364        ]) 
    6465 
     
    8283            request = remoting.decode(body, context) 
    8384        except pyamf.DecodeError: 
    84             self.logger.error(gateway.format_exception()) 
     85            self.logger.exception(gateway.format_exception()) 
    8586 
    8687            response = "400 Bad Request\n\nThe request body was unable to " \ 
     
    9394                ('Content-Type', 'text/plain'), 
    9495                ('Content-Length', str(len(response))), 
     96                ('Server', gateway.SERVER_NAME), 
    9597            ]) 
    9698 
     
    105107            raise 
    106108        except: 
    107             self.logger.error(gateway.format_exception()) 
     109            self.logger.exception(gateway.format_exception()) 
    108110 
    109111            response = "500 Internal Server Error\n\nThe request was " \ 
     
    116118                ('Content-Type', 'text/plain'), 
    117119                ('Content-Length', str(len(response))), 
     120                ('Server', gateway.SERVER_NAME), 
    118121            ]) 
    119122 
     
    126129            stream = remoting.encode(response, context) 
    127130        except pyamf.EncodeError: 
    128             self.logger.error(gateway.format_exception()) 
     131            self.logger.exception(gateway.format_exception()) 
    129132 
    130133            response = "500 Internal Server Error\n\nThe request was " \ 
     
    137140                ('Content-Type', 'text/plain'), 
    138141                ('Content-Length', str(len(response))), 
     142                ('Server', gateway.SERVER_NAME), 
    139143            ]) 
    140144 
     
    146150            ('Content-Type', remoting.CONTENT_TYPE), 
    147151            ('Content-Length', str(len(response))), 
     152            ('Server', gateway.SERVER_NAME), 
    148153        ]) 
    149154