[Modify] Polish it
This commit is contained in:
@@ -784,11 +784,6 @@ namespace WebSocketSharp.Net
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!method.IsToken ()) {
|
|
||||||
_context.ErrorMessage = "Invalid request line (method)";
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var target = parts[1];
|
var target = parts[1];
|
||||||
if (target.Length == 0) {
|
if (target.Length == 0) {
|
||||||
_context.ErrorMessage = "Invalid request line (target)";
|
_context.ErrorMessage = "Invalid request line (target)";
|
||||||
|
|||||||
Reference in New Issue
Block a user