From 1ec1528f3b95f7abc90eeac48e9a231124148c52 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Thu, 13 Feb 2014 15:46:24 +0100 Subject: [PATCH] Mimic iTunes and reply 204 No Content to playqueue-edit&add --- src/httpd_dacp.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/httpd_dacp.c b/src/httpd_dacp.c index 3dec3422..f3af0403 100644 --- a/src/httpd_dacp.c +++ b/src/httpd_dacp.c @@ -1391,11 +1391,8 @@ dacp_reply_playqueueedit_add(struct evhttp_request *req, struct evbuffer *evbuf, return; } - dmap_add_container(evbuf, "cacr", 24); /* 8 + len */ - dmap_add_int(evbuf, "mstt", 200); /* 12 */ - dmap_add_int(evbuf, "miid", ps->id); /* 12 */ - - httpd_send_reply(req, HTTP_OK, "OK", evbuf); + /* 204 No Content is the canonical reply */ + evhttp_send_reply(req, HTTP_NOCONTENT, "No Content", evbuf); } static void