mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-28 08:20:59 -04:00
[jsonapi] Do not set "DAAP-Server" header in json api response
This commit is contained in:
parent
0e9feac829
commit
1212723072
@ -1137,9 +1137,6 @@ jsonapi_request(struct evhttp_request *req, struct httpd_uri_parsed *uri_parsed)
|
|||||||
return;
|
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());
|
CHECK_NULL(L_WEB, hreq->reply = evbuffer_new());
|
||||||
|
|
||||||
status_code = hreq->handler(hreq);
|
status_code = hreq->handler(hreq);
|
||||||
@ -1147,6 +1144,7 @@ jsonapi_request(struct evhttp_request *req, struct httpd_uri_parsed *uri_parsed)
|
|||||||
switch (status_code)
|
switch (status_code)
|
||||||
{
|
{
|
||||||
case HTTP_OK: /* 200 OK */
|
case HTTP_OK: /* 200 OK */
|
||||||
|
headers = evhttp_request_get_output_headers(req);
|
||||||
evhttp_add_header(headers, "Content-Type", "application/json");
|
evhttp_add_header(headers, "Content-Type", "application/json");
|
||||||
httpd_send_reply(req, status_code, "OK", hreq->reply, 0);
|
httpd_send_reply(req, status_code, "OK", hreq->reply, 0);
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user