Skip to content

Commit 8f9073e

Browse files
jo-ninjamkArtakMSFT
authored andcommitted
Fixes typo in StaticComponentRenderer.cs (#14925)
Fixes "reponse" => "response"
1 parent d4cc16a commit 8f9073e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Mvc/Mvc.ViewFeatures/src/RazorComponents/StaticComponentRenderer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public async Task<IEnumerable<string>> PrerenderComponentAsync(
5353
// all components have rendered.
5454
throw new InvalidOperationException("A navigation command was attempted during prerendering after the server already started sending the response. " +
5555
"Navigation commands can not be issued during server-side prerendering after the response from the server has started. Applications must buffer the" +
56-
"reponse and avoid using features like FlushAsync() before all components on the page have been rendered to prevent failed navigation commands.", navigationException);
56+
"response and avoid using features like FlushAsync() before all components on the page have been rendered to prevent failed navigation commands.", navigationException);
5757
}
5858

5959
httpContext.Response.Redirect(navigationException.Location);

src/Mvc/Mvc.ViewFeatures/test/HtmlHelperComponentExtensionsTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) .NET Foundation. All rights reserved.
1+
// Copyright (c) .NET Foundation. All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33

44
using System;
@@ -516,7 +516,7 @@ public async Task UriHelperRedirect_ThrowsInvalidOperationException_WhenResponse
516516

517517
Assert.Equal("A navigation command was attempted during prerendering after the server already started sending the response. " +
518518
"Navigation commands can not be issued during server-side prerendering after the response from the server has started. Applications must buffer the" +
519-
"reponse and avoid using features like FlushAsync() before all components on the page have been rendered to prevent failed navigation commands.",
519+
"response and avoid using features like FlushAsync() before all components on the page have been rendered to prevent failed navigation commands.",
520520
exception.Message);
521521
}
522522

0 commit comments

Comments
 (0)