11 references to EscapeNonPrintable
InMemory.FunctionalTests (11)
BadHttpRequestTests.cs (11)
59{ "Hea\0der: value".EscapeNonPrintable(), ("Hea\0der: value", "Invalid characters in header name.") }, 60{ "Header: va\0lue".EscapeNonPrintable(), ("Header: va\0lue", "Malformed request: invalid headers.") }, 61{ "Head\x80r: value".EscapeNonPrintable(), ("Head\x80r: value", "Invalid characters in header name.") }, 62{ "Header: valu\x80".EscapeNonPrintable(), ("Header: valu\x80", "Malformed request: invalid headers.") }, 67"Hea\0der: value".EscapeNonPrintable(), 68"Header: va\0lue".EscapeNonPrintable(), 69"Head\x80r: value".EscapeNonPrintable(), 70"Header: valu\x80".EscapeNonPrintable() 593data.Add(requestLine, CoreStrings.FormatBadRequest_InvalidRequestLine_Detail(line[..^1].EscapeNonPrintable())); 598data.Add($"GET {target} HTTP/1.1\r\n", CoreStrings.FormatBadRequest_InvalidRequestTarget_Detail(target.EscapeNonPrintable())); 604data.Add($"GET {target} HTTP/1.1\r\n", CoreStrings.FormatBadRequest_InvalidRequestLine_Detail($"GET {printableTarget.EscapeNonPrintable()}"));