[Modify] Replace it
This commit is contained in:
parent
b7aa691def
commit
d24fb88d0e
@ -806,7 +806,7 @@ namespace WebSocketSharp.Net
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rawVer.IndexOf ("HTTP/") != 0) {
|
if (!rawVer.StartsWith ("HTTP/", StringComparison.Ordinal)) {
|
||||||
_context.ErrorMessage = "Invalid request line (version)";
|
_context.ErrorMessage = "Invalid request line (version)";
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user