Commit 7375c90c authored by W. Michael Petullo's avatar W. Michael Petullo
Browse files

Fix problem sharing to iTunes due to incorrect Content-Length


Signed-off-by: W. Michael Petullo's avatarW. Michael Petullo <mike@flyn.org>
parent edbd2c10
......@@ -1459,7 +1459,7 @@ accumulate_mlcl_size (gpointer id,
struct MLCL_Bits mb_copy = *((struct MLCL_Bits *) mb);
mb_copy.mlcl = dmap_structure_add (NULL, DMAP_CC_MLCL);;
*((guint *) ((struct MLCL_Bits *) mb)->user_data1) += DMAP_SHARE_GET_CLASS (((struct MLCL_Bits *) mb)->user_data2)->add_entry_to_mlcl (id, record, &mb_copy);
*((guint *) ((struct MLCL_Bits *) mb)->user_data1) += DMAP_SHARE_GET_CLASS (((struct MLCL_Bits *) mb)->user_data2)->add_entry_to_mlcl (id, record, &mb_copy) + 8 /* FIXME: sizeof MLIT */;
/* Destroy created structures as we go. */
dmap_structure_destroy (mb_copy.mlcl);
......@@ -1746,7 +1746,7 @@ _dmap_share_databases (DMAPShare *share,
/* 3: */
soup_message_set_status (message, SOUP_STATUS_OK);
soup_message_headers_set_content_length (message->response_headers, dmap_structure_get_size(adbs) + 8);
soup_message_headers_set_content_length (message->response_headers, dmap_structure_get_size(adbs) + 8 /* FIXME: sizeof MLCL */);
/* Free memory after each chunk sent out over network. */
soup_message_body_set_accumulate (message->response_body, FALSE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment