Fixes typo in StaticComponentRenderer.cs (#14925)

Fixes "reponse" => "response"
This commit is contained in:
Joni 2019-10-17 01:29:56 +09:00 committed by Artak
parent d4cc16a1c8
commit 8f9073e8ea
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.RazorComponents
// all components have rendered.
throw new InvalidOperationException("A navigation command was attempted during prerendering after the server already started sending the response. " +
"Navigation commands can not be issued during server-side prerendering after the response from the server has started. Applications must buffer the" +
"reponse and avoid using features like FlushAsync() before all components on the page have been rendered to prevent failed navigation commands.", navigationException);
"response and avoid using features like FlushAsync() before all components on the page have been rendered to prevent failed navigation commands.", navigationException);
}
httpContext.Response.Redirect(navigationException.Location);

View File

@ -1,4 +1,4 @@
// Copyright (c) .NET Foundation. All rights reserved.
// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
@ -516,7 +516,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Test
Assert.Equal("A navigation command was attempted during prerendering after the server already started sending the response. " +
"Navigation commands can not be issued during server-side prerendering after the response from the server has started. Applications must buffer the" +
"reponse and avoid using features like FlushAsync() before all components on the page have been rendered to prevent failed navigation commands.",
"response and avoid using features like FlushAsync() before all components on the page have been rendered to prevent failed navigation commands.",
exception.Message);
}