Skip to content

Commit 4216f18

Browse files
committed
chore: fix typo and extend test
1 parent 7069f9f commit 4216f18

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/proxy/routes/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ const getRouter = async () => {
238238
res.set('Cache-Control', 'no-cache, no-store, must-revalidate, proxy-revalidate');
239239
res.set('Pragma', 'no-cache');
240240
res.set('Expires', '0');
241-
res.set('Surrigate-Control', 'no-store');
241+
res.set('Surrogate-Control', 'no-store');
242242
return res.status(200).send('OK');
243243
}
244244

test/testProxyRoute.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ describe('healthcheck route', () => {
221221
);
222222
expect(res).to.have.header('pragma', 'no-cache');
223223
expect(res).to.have.header('expires', '0');
224+
expect(res).to.have.header('surrogate-control', 'no-store');
224225
});
225226
});
226227

0 commit comments

Comments
 (0)