From 12127230729a5cfcdd4373b7dfc59e971b35b4a9 Mon Sep 17 00:00:00 2001 From: chme Date: Tue, 13 Feb 2018 20:03:55 +0100 Subject: [PATCH] [jsonapi] Do not set "DAAP-Server" header in json api response --- src/httpd_jsonapi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/httpd_jsonapi.c b/src/httpd_jsonapi.c index 17cf4e78..b0e561be 100644 --- a/src/httpd_jsonapi.c +++ b/src/httpd_jsonapi.c @@ -1137,9 +1137,6 @@ jsonapi_request(struct evhttp_request *req, struct httpd_uri_parsed *uri_parsed) return; } - headers = evhttp_request_get_output_headers(req); - evhttp_add_header(headers, "DAAP-Server", "forked-daapd/" VERSION); - CHECK_NULL(L_WEB, hreq->reply = evbuffer_new()); status_code = hreq->handler(hreq); @@ -1147,6 +1144,7 @@ jsonapi_request(struct evhttp_request *req, struct httpd_uri_parsed *uri_parsed) switch (status_code) { case HTTP_OK: /* 200 OK */ + headers = evhttp_request_get_output_headers(req); evhttp_add_header(headers, "Content-Type", "application/json"); httpd_send_reply(req, status_code, "OK", hreq->reply, 0); break;