From c52a0c99861700a72d4219aa960e12fc9596980a Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Mon, 14 Nov 2005 05:40:54 +0000 Subject: [PATCH] workaround for client that claim http 1.0 --- src/dispatch.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/dispatch.c b/src/dispatch.c index 1bd7b57f..91cfb3a1 100644 --- a/src/dispatch.c +++ b/src/dispatch.c @@ -145,6 +145,11 @@ void daap_handler(WS_CONNINFO *pwsc) { ws_addresponseheader(pwsc,"Content-Type","application/x-dmap-tagged"); ws_addresponseheader(pwsc,"Cache-Control","no-cache"); /* anti-ie defense */ 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")) pqi->session_id = atoi(ws_getvar(pwsc,"session-id"));