mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-27 06:33:21 -05:00
workaround for client that claim http 1.0
This commit is contained in:
parent
a57b002243
commit
c52a0c9986
@ -146,6 +146,11 @@ void daap_handler(WS_CONNINFO *pwsc) {
|
|||||||
ws_addresponseheader(pwsc,"Cache-Control","no-cache"); /* anti-ie defense */
|
ws_addresponseheader(pwsc,"Cache-Control","no-cache"); /* anti-ie defense */
|
||||||
ws_addresponseheader(pwsc,"Expires","-1");
|
ws_addresponseheader(pwsc,"Expires","-1");
|
||||||
|
|
||||||
|
/* This we should put in a quirks file or something, but here might
|
||||||
|
* be a decent workaround for various failures on different clients */
|
||||||
|
pwsc->close=0;
|
||||||
|
|
||||||
|
|
||||||
if(ws_getvar(pwsc,"session-id"))
|
if(ws_getvar(pwsc,"session-id"))
|
||||||
pqi->session_id = atoi(ws_getvar(pwsc,"session-id"));
|
pqi->session_id = atoi(ws_getvar(pwsc,"session-id"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user