- Timestamp:
- 07/09/08 11:51:16 (5 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pyamf/branches/server-name-317-2/pyamf/remoting/gateway/twisted.py
r1486 r1495 69 69 70 70 def response_cb(result): 71 self.gateway.logger.debug("AMF Response: %r" % result)72 71 response.body = result 72 73 self.gateway.logger.debug("AMF Response: %r" % response) 73 74 deferred_response.callback(response) 74 75 … … 124 125 125 126 def response_cb(result): 126 self.gateway.logger.debug("AMF Response: %r" % result)127 127 128 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) 129 133 130 134 def process_cb(result): … … 195 199 request.setHeader("Content-Type", mimetype) 196 200 request.setHeader("Content-Length", str(len(content))) 201 request.setHeader("Server", gateway.SERVER_NAME) 197 202 198 203 request.write(content) … … 210 215 Return HTTP 400 Bad Request. 211 216 """ 212 self.logger.e rror(failure.printDetailedTraceback())217 self.logger.exception(failure.printDetailedTraceback()) 213 218 214 219 body = "400 Bad Request\n\nThe request body was unable to " \
