From 0288af5a930a7d076866b0efaed56173cad1c058 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Tue, 14 May 2019 07:51:05 +0000 Subject: [PATCH] Feature: Report SOURCE as deprecated in log on level DEBUG --- src/connection.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/connection.c b/src/connection.c index c42f1549..4e9d3d2f 100644 --- a/src/connection.c +++ b/src/connection.c @@ -887,6 +887,10 @@ static void _handle_source_request(client_t *client) ((method) ? "\"" : "<"), ((method) ? method : "unknown"), ((method) ? "\"" : "<"), client->con->ip, client->role); + if (client->parser && client->parser->req_type == httpp_req_source) { + ICECAST_LOG_DEBUG("Source at mountpoint \"%s\" connected using deprecated SOURCE method.", client->uri); + } + if (client->uri[0] != '/') { ICECAST_LOG_WARN("source mountpoint not starting with /"); client_send_error_by_id(client, ICECAST_ERROR_CON_MOUNTPOINT_NOT_STARTING_WITH_SLASH);