From 62472b5b5843516981345355705015d348679457 Mon Sep 17 00:00:00 2001 From: "Joseph C. Lehner" Date: Sat, 3 Aug 2013 17:36:18 +0200 Subject: [PATCH] Allow empty SET_PARAMETER request Certain senders (AirAudio for Android for example) periodically send SET_PARAMETER requests with Content-Length: 0, to which shairport responds with an error, making those apps misbehave. --- rtsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtsp.c b/rtsp.c index 63fd9648..b88a5716 100644 --- a/rtsp.c +++ b/rtsp.c @@ -411,7 +411,7 @@ static void handle_ignore(rtsp_conn_info *conn, static void handle_set_parameter(rtsp_conn_info *conn, rtsp_message *req, rtsp_message *resp) { if (!req->contentlength) - return; + debug(1, "received empty SET_PARAMETER request\n"); char *cp = req->content; int cp_left = req->contentlength;