Commit 76a6fd05 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Complain if the protocol is not RTSP

parent 8a0ab9f2
...@@ -369,6 +369,11 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id, ...@@ -369,6 +369,11 @@ static int RtspHandler( rtsp_stream_t *rtsp, rtsp_stream_id_t *id,
answer->i_body = 0; answer->i_body = 0;
answer->p_body = NULL; answer->p_body = NULL;
if( query->i_proto != HTTPD_PROTO_RTSP )
{
answer->i_status = 505;
}
else
if( httpd_MsgGet( query, "Require" ) != NULL ) if( httpd_MsgGet( query, "Require" ) != NULL )
{ {
answer->i_status = 551; answer->i_status = 551;
......
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