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/twisted.py

    r1486 r1495  
    6969 
    7070        def response_cb(result): 
    71             self.gateway.logger.debug("AMF Response: %r" % result) 
    7271            response.body = result 
     72 
     73            self.gateway.logger.debug("AMF Response: %r" % response) 
    7374            deferred_response.callback(response) 
    7475 
     
    124125 
    125126        def response_cb(result): 
    126             self.gateway.logger.debug("AMF Response: %r" % result) 
     127             
    127128            ro_response.body = result 
    128             deferred_response.callback(remoting.Response(ro_response)) 
     129            res = remoting.Response(ro_response) 
     130            self.gateway.logger.debug("AMF Response: %r" % res) 
     131             
     132            deferred_response.callback(res) 
    129133 
    130134        def process_cb(result): 
     
    195199        request.setHeader("Content-Type", mimetype) 
    196200        request.setHeader("Content-Length", str(len(content))) 
     201        request.setHeader("Server", gateway.SERVER_NAME) 
    197202 
    198203        request.write(content) 
     
    210215            Return HTTP 400 Bad Request. 
    211216            """ 
    212             self.logger.error(failure.printDetailedTraceback()) 
     217            self.logger.exception(failure.printDetailedTraceback()) 
    213218 
    214219            body = "400 Bad Request\n\nThe request body was unable to " \