From 620df0e35e447d39c7f2b9e9909fa1a793851be7 Mon Sep 17 00:00:00 2001 From: Douglas Christopher Wilson Date: Tue, 8 Feb 2022 09:55:19 -0500 Subject: [PATCH] deps: serve-static@2.0.0-beta.1 --- History.md | 5 +++++ package.json | 2 +- test/express.static.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/History.md b/History.md index c12379180e..495c903a7c 100644 --- a/History.md +++ b/History.md @@ -24,6 +24,11 @@ This incorporates all changes after 4.17.1 up to 4.17.2. - deps: parseurl@~1.3.3 - deps: path-to-regexp@3.2.0 - deps: setprototypeof@1.2.0 + * deps: serve-static@2.0.0-beta.1 + - Change `dotfiles` option default to `'ignore'` + - Remove `hidden` option; use `dotfiles` option instead + - Use `mime-types` for file to content type mapping + - deps: send@1.0.0-beta.1 5.0.0-alpha.8 / 2020-03-25 ========================== diff --git a/package.json b/package.json index 214263c3f9..008627d636 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "router": "2.0.0-beta.1", "safe-buffer": "5.2.1", "send": "0.17.2", - "serve-static": "1.14.2", + "serve-static": "2.0.0-beta.1", "setprototypeof": "1.2.0", "statuses": "~1.5.0", "type-is": "~1.6.18", diff --git a/test/express.static.js b/test/express.static.js index 56d3657bff..e130a0861e 100644 --- a/test/express.static.js +++ b/test/express.static.js @@ -40,7 +40,7 @@ describe('express.static()', function () { it('should set Content-Type', function (done) { request(this.app) .get('/todo.txt') - .expect('Content-Type', 'text/plain; charset=UTF-8') + .expect('Content-Type', 'text/plain; charset=utf-8') .expect(200, done) })