[Modify] Polish it
This commit is contained in:
parent
26e9edddf2
commit
c97fd7d97a
@ -1138,8 +1138,11 @@ namespace WebSocketSharp.Net
|
||||
if (header == null)
|
||||
throw new ArgumentNullException ("header");
|
||||
|
||||
if (header.Length == 0)
|
||||
throw new ArgumentException ("An empty string.", "header");
|
||||
if (header.Length == 0) {
|
||||
var msg = "An empty string.";
|
||||
|
||||
throw new ArgumentException (msg, "header");
|
||||
}
|
||||
|
||||
var idx = header.IndexOf (':');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user