Skip to content

Commit 96f53b4

Browse files
Fix typos (#56530)
"Correnct" => "Correct" "Lenght" => "Length"
1 parent 53f01dc commit 96f53b4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Middleware/ResponseCompression/test/ResponseCompressionMiddlewareTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public async Task RequestHead_AcceptGzipDeflate_CompressedGzip()
126126
{
127127
var (response, logMessages) = await InvokeMiddleware(100, requestAcceptEncodings: new[] { "gzip", "deflate" }, responseType: TextPlain, httpMethod: HttpMethods.Head);
128128

129-
// Per RFC 7231, section 4.3.2, the Content-Lenght header can be omitted on HEAD requests.
129+
// Per RFC 7231, section 4.3.2, the Content-Length header can be omitted on HEAD requests.
130130
CheckResponseCompressed(response, expectedBodyLength: null, expectedEncoding: "gzip");
131131
AssertCompressedWithLog(logMessages, "gzip");
132132
}

src/Servers/IIS/AspNetCoreModuleV2/CommonLibTests/utility_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ TEST(PassUnexpandedEnvString, LongStringExpandsResults)
4343
}
4444

4545

46-
TEST(GetEnvironmentVariableValue, ReturnsCorrectLenght)
46+
TEST(GetEnvironmentVariableValue, ReturnsCorrectLength)
4747
{
4848
SetEnvironmentVariable(L"RANDOM_ENV_VAR_1", L"test");
4949

src/Shared/test/Shared.Tests/UrlDecoderTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,15 @@ public void ByteDestinationShorterThanSourceDecodeRequestLineThrows()
6565
}
6666

6767
[Fact]
68-
public void StringDestinationLargerThanSourceDecodeRequestLineReturnsCorrenctLenght()
68+
public void StringDestinationLargerThanSourceDecodeRequestLineReturnsCorrectLength()
6969
{
7070
var source = "/a%20b".ToCharArray();
7171
var length = UrlDecoder.DecodeRequestLine(source.AsSpan(), new char[source.Length + 10]);
7272
Assert.Equal(4, length);
7373
}
7474

7575
[Fact]
76-
public void ByteDestinationLargerThanSourceDecodeRequestLineReturnsCorrenctLenght()
76+
public void ByteDestinationLargerThanSourceDecodeRequestLineReturnsCorrectLength()
7777
{
7878
var source = Encoding.UTF8.GetBytes("/a%20b".ToCharArray());
7979
var length = UrlDecoder.DecodeRequestLine(source.AsSpan(), new byte[source.Length + 10], false);

0 commit comments

Comments
 (0)