Commit 0288af5a authored by Philipp Schafft's avatar Philipp Schafft 🦁

Feature: Report SOURCE as deprecated in log on level DEBUG

parent 0467ef56
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment