Skip to content

Commit

Permalink
Fix and comment unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusfriedman committed Nov 15, 2023
1 parent 0f43701 commit 5ea5e64
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions RtspServer/RtspServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2844,16 +2844,16 @@ digest and request-digest values.
{
//Parse type from authHeader

string[] parts = authHeader.Split((char)Common.ASCII.Space);
//string[] parts = authHeader.Split((char)Common.ASCII.Space, 2, StringSplitOptions.RemoveEmptyEntries);

string authType = null;
//string authType = null;

//Warning didn't check 2 parts..
if (parts.Length > 0)
{
authType = parts[0];
authHeader = parts[1];
}
////Warning didn't check 2 parts..
//if (parts.Length > 0)
//{
// authType = parts[0];
// authHeader = parts[1];
//}

////should check to ensure wrong type was not used e.g. basic in place of digest...
//if (string.Compare(authType, RtspHeaderFields.Authorization.Digest, true) == 0)
Expand Down

0 comments on commit 5ea5e64

Please sign in to comment.