[Fix] Fix for no value
This commit is contained in:
parent
833cd688e4
commit
6a6a652528
@ -991,7 +991,9 @@ namespace WebSocketSharp.Net
|
||||
}
|
||||
|
||||
var name = header.Substring (0, idx);
|
||||
var val = header.Substring (idx + 1);
|
||||
var val = idx < header.Length - 1
|
||||
? header.Substring (idx + 1)
|
||||
: String.Empty;
|
||||
|
||||
InternalSet (name, val, response);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user