Skip to content
Snippets Groups Projects
Commit fcc81fd6 authored by Anatolii Kurotych's avatar Anatolii Kurotych
Browse files

[*] Return backward compatibility

parent 8fa982b5
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,8 @@ void stream_headers_read(dap_http_client_t * cl_ht, void * arg)
if(cl_ht->in_query_string[0]){
log_it(L_INFO,"Query string [%s]",cl_ht->in_query_string);
// if(sscanf(cl_ht->in_query_string,"fj913htmdgaq-d9hf=%u",&id)==1){
if(sscanf(cl_ht->in_query_string,"session_id=%u",&id)==1){
if(sscanf(cl_ht->in_query_string,"session_id=%u",&id) == 1 ||
sscanf(cl_ht->in_query_string,"fj913htmdgaq-d9hf=%u",&id) == 1) {
dap_stream_session_t * ss=NULL;
ss=dap_stream_session_id(id);
if(ss==NULL){
......
......@@ -110,9 +110,10 @@ void stream_ctl_proc(struct dap_http_simple *cl_st, void * arg)
sscanf(dg->url_path, "stream_ctl,channels=%s", l_channels_str) == 1) {
l_new_session = true;
}
/*if (strcmp(dg->url_path,"socket_forward")==0){
else if(strcmp(dg->url_path, "socket_forward" ) == 0) {
l_new_session = true;
}else if (strcmp(dg->url_path,"stream_ctl")==0) {
}
/* }else if (strcmp(dg->url_path,"stream_ctl")==0) {
l_new_session = true;
}*/
else{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment