Commit aa7e3f1c authored by Marc Gravell's avatar Marc Gravell

fix StartsWith snafu

parent ed264de5
......@@ -228,7 +228,7 @@ internal bool StartsWith(CommandBytes expected)
if (len > _payload.Length) return false;
var rangeToCheck = _payload.Slice(0, len);
return rangeToCheck.Equals(expected);
return new CommandBytes(rangeToCheck).Equals(expected);
}
internal bool StartsWith(byte[] expected)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment