mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-29 08:33:23 -05:00
Add debug message for RTSP requests
This commit is contained in:
parent
2011c33526
commit
fa299a9be9
@ -912,6 +912,10 @@ raop_add_headers(struct raop_session *rs, struct evrtsp_request *req, enum evrts
|
|||||||
const char *url;
|
const char *url;
|
||||||
int ret;
|
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);
|
snprintf(buf, sizeof(buf), "%d", rs->cseq);
|
||||||
evrtsp_add_header(req->output_headers, "CSeq", buf);
|
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 */
|
/* Add Authorization header */
|
||||||
url = (req_method == EVRTSP_REQ_OPTIONS) ? "*" : rs->session_url;
|
url = (req_method == EVRTSP_REQ_OPTIONS) ? "*" : rs->session_url;
|
||||||
method = evrtsp_method(req_method);
|
|
||||||
|
|
||||||
ret = raop_add_auth(rs, req, method, url);
|
ret = raop_add_auth(rs, req, method, url);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user