[Modify] Replace it

This commit is contained in:
sta 2021-01-24 21:46:47 +09:00
parent b7aa691def
commit d24fb88d0e

View File

@ -806,7 +806,7 @@ namespace WebSocketSharp.Net
return;
}
if (rawVer.IndexOf ("HTTP/") != 0) {
if (!rawVer.StartsWith ("HTTP/", StringComparison.Ordinal)) {
_context.ErrorMessage = "Invalid request line (version)";
return;