From 00b5bd7ecbf5b90b41a14eb4e6ecf035f5651c86 Mon Sep 17 00:00:00 2001 From: alxndrsn Date: Wed, 9 Oct 2024 08:05:40 +0000 Subject: [PATCH] fix test URL --- test/test-nginx.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-nginx.js b/test/test-nginx.js index d9aedad5..a6181f5f 100644 --- a/test/test-nginx.js +++ b/test/test-nginx.js @@ -128,7 +128,7 @@ describe('nginx config', () => { it('should reject HTTPS requests with incorrect host header supplied', async () => { // when - const res = await fetchHttps('/.well-known/acme-challenge', { headers:{ host:'bad.example.com' } }); + const res = await fetchHttps('/', { headers:{ host:'bad.example.com' } }); // then assert.equal(res.status, 421);