8 references to EscapeNonPrintable
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (8)
Http1\Http1ConnectionTests.cs (4)
498
Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail($"GET {partialTarget.
EscapeNonPrintable
()}"), exception.Message);
515
Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(partialRequestLine.
EscapeNonPrintable
()), exception.Message);
532
Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail($"GET {partialTarget.
EscapeNonPrintable
()}"), exception.Message);
548
Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestTarget_Detail(target.
EscapeNonPrintable
()), exception.Message);
HttpParserTests.cs (4)
96
Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(line[..^1].
EscapeNonPrintable
()), exception.Message);
124
Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(requestLine[..^1].
EscapeNonPrintable
()), exception.Message);
147
Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(line.
EscapeNonPrintable
()), exception.Message);
151
Assert.Equal(CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(method.
EscapeNonPrintable
() + @" / HTTP/1.1\x0D"), exception.Message);