From fa299a9be92215de35927346d440682ba0ff9e56 Mon Sep 17 00:00:00 2001 From: Julien BLACHE Date: Sun, 12 Dec 2010 15:06:57 +0100 Subject: [PATCH] Add debug message for RTSP requests --- src/raop.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/raop.c b/src/raop.c index 9dbf4e2c..c971d536 100644 --- a/src/raop.c +++ b/src/raop.c @@ -912,6 +912,10 @@ raop_add_headers(struct raop_session *rs, struct evrtsp_request *req, enum evrts const char *url; int ret; + method = evrtsp_method(req_method); + + DPRINTF(E_DBG, L_RAOP, "Building %s for %s\n", method, rs->devname); + snprintf(buf, sizeof(buf), "%d", rs->cseq); evrtsp_add_header(req->output_headers, "CSeq", buf); @@ -919,7 +923,6 @@ raop_add_headers(struct raop_session *rs, struct evrtsp_request *req, enum evrts /* Add Authorization header */ url = (req_method == EVRTSP_REQ_OPTIONS) ? "*" : rs->session_url; - method = evrtsp_method(req_method); ret = raop_add_auth(rs, req, method, url); if (ret < 0)