[Modify] Polish it
This commit is contained in:
parent
ef2d7ac99c
commit
7284b6f97c
@ -628,8 +628,10 @@ namespace WebSocketSharp.Net
|
|||||||
}
|
}
|
||||||
|
|
||||||
Uri uri;
|
Uri uri;
|
||||||
if (!Uri.TryCreate (value, UriKind.Absolute, out uri))
|
if (!Uri.TryCreate (value, UriKind.Absolute, out uri)) {
|
||||||
throw new ArgumentException ("Not an absolute URL.", "value");
|
var msg = "Not an absolute URL.";
|
||||||
|
throw new ArgumentException (msg, "value");
|
||||||
|
}
|
||||||
|
|
||||||
_redirectLocation = uri;
|
_redirectLocation = uri;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user