Ticket #317: consistent-printing-server-317.patch
| File consistent-printing-server-317.patch, 1.8 KB (added by thijs, 4 months ago) |
|---|
-
pyamf/remoting/client/__init__.py
396 396 """ 397 397 self.logger.debug('Waiting for response...') 398 398 http_response = self.connection.getresponse() 399 self.logger.debug('Got response status =%s' % http_response.status)400 self.logger.debug('Content-Type =%s' % http_response.getheader('Content-Type'))399 self.logger.debug('Got response status: %s' % http_response.status) 400 self.logger.debug('Content-Type: %s' % http_response.getheader('Content-Type')) 401 401 402 402 if http_response.status != HTTP_OK: 403 self.logger.debug('Body =%s' % http_response.read())403 self.logger.debug('Body: %s' % http_response.read()) 404 404 405 405 if hasattr(httplib, 'responses'): 406 406 raise remoting.RemotingError, "HTTP Gateway reported status %d %s" % ( … … 419 419 content_length = http_response.getheader('Content-Length') 420 420 bytes = '' 421 421 422 self.logger.debug('Content-Length = %s' % content_length) 423 422 self.logger.debug('Content-Length: %s' % content_length) 423 self.logger.debug('Server: %s' % http_response.getheader('Server')) 424 424 425 if content_length is None: 425 426 bytes = http_response.read() 426 427 else: … … 429 430 self.logger.debug('Read %d bytes for the response' % len(bytes)) 430 431 431 432 response = remoting.decode(bytes) 432 self.logger.debug('Response =%s' % response)433 self.logger.debug('Response: %s' % response) 433 434 434 435 if remoting.APPEND_TO_GATEWAY_URL in response.headers: 435 436 self.original_url += response.headers[remoting.APPEND_TO_GATEWAY_URL]
