Skip to content

Commit 285a34e

Browse files
committed
fix(@angular/ssr): correct grammar in console warning for redirected location headers
The console message had incorrect grammer. (cherry picked from commit ddcef9d)
1 parent 5a64af9 commit 285a34e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/angular/ssr/src/utils/redirect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export function createRedirectResponse(
4646
if (ngDevMode && resHeaders.has('location')) {
4747
// eslint-disable-next-line no-console
4848
console.warn(
49-
`Location header "${resHeaders.get('location')}" will ignored and set to "${location}".`,
49+
`Location header "${resHeaders.get('location')}" will be ignored and set to "${location}".`,
5050
);
5151
}
5252

packages/angular/ssr/test/utils/redirect_spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('Redirect Utils', () => {
5252
const warnSpy = spyOn(console, 'warn');
5353
createRedirectResponse('/home', 302, { 'Location': '/evil' });
5454
expect(warnSpy).toHaveBeenCalledWith(
55-
'Location header "/evil" will ignored and set to "/home".',
55+
'Location header "/evil" will be ignored and set to "/home".',
5656
);
5757
});
5858

0 commit comments

Comments
 (0)