mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
iTunes updates, courtesy of Shish
This commit is contained in:
parent
758c0c6245
commit
4d8e618f75
@ -1047,7 +1047,9 @@ int ws_returnerror(WS_CONNINFO *pwsc,int error, char *description) {
|
|||||||
/* we'll force a close here unless the user agent is
|
/* we'll force a close here unless the user agent is
|
||||||
iTunes, which seems to get pissy about it */
|
iTunes, which seems to get pissy about it */
|
||||||
useragent = ws_getarg(&pwsc->request_headers,"User-Agent");
|
useragent = ws_getarg(&pwsc->request_headers,"User-Agent");
|
||||||
if((useragent) && (strncmp(useragent,"iTunes",6) == 0) && (error == 401)) {
|
if((useragent) &&
|
||||||
|
(((strncmp(useragent,"iTunes",6) == 0) && (error == 401)) ||
|
||||||
|
((strncmp(useragent,"Java",4) == 0)))) {
|
||||||
ws_addarg(&pwsc->response_headers,"Connection","keep-alive");
|
ws_addarg(&pwsc->response_headers,"Connection","keep-alive");
|
||||||
ws_addarg(&pwsc->response_headers,"Content-Length","2");
|
ws_addarg(&pwsc->response_headers,"Content-Length","2");
|
||||||
ws_emitheaders(pwsc);
|
ws_emitheaders(pwsc);
|
||||||
|
Loading…
Reference in New Issue
Block a user