***************
*** 762,778 ****
  http_response_handler (SoupMessage *message,
  		       RBDAAPConnection *connection)
  {
- 	RBDaapConnectionPrivate *priv = DAAP_CONNECTION_GET_PRIVATE (connection);
- 	GNode *structure = NULL;
- 	guint status = message->status_code;
- 	char *response = message->response.body;
- 	int response_length = message->response.length;
- 	const char *encoding_header = NULL;
  
- 	if (message->response_headers)
  		encoding_header = soup_message_get_header (message->response_headers, "Content-Encoding");
  
- 	if (SOUP_STATUS_IS_SUCCESSFUL (status) && encoding_header && strcmp(encoding_header, "gzip") == 0) {
  #ifdef HAVE_LIBZ
  		z_stream stream;
  		char *new_response;
--- 765,796 ----
  http_response_handler (SoupMessage *message,
  		       RBDAAPConnection *connection)
  {
+ 	RBDaapConnectionPrivate *priv;
+ 	GNode *structure;
+ 	guint status;
+ 	char *response;
+ 	int response_length;
+ 	const char *encoding_header;
+ 
+ 	priv = DAAP_CONNECTION_GET_PRIVATE (connection);
+ 	structure = NULL;
+ 	status = message->status_code;
+ 	response = message->response.body;
+ 	response_length = message->response.length;
+ 	encoding_header = NULL;
+ 
+ 	rb_debug ("Received response from http://%s:%d/%s: %d, %s\n", 
+ 		  priv->base_uri->host,
+ 		  priv->base_uri->port,
+ 		  priv->base_uri->path, 
+ 		  message->status_code,
+ 		  message->reason_phrase);
  
+ 	if (message->response_headers) {
  		encoding_header = soup_message_get_header (message->response_headers, "Content-Encoding");
+ 	}
  
+ 	if (SOUP_STATUS_IS_SUCCESSFUL (status) && encoding_header && strcmp (encoding_header, "gzip") == 0) {
  #ifdef HAVE_LIBZ
  		z_stream stream;
  		char *new_response;
