deps: serve-static@2.0.0-beta.1

This commit is contained in:
Douglas Christopher Wilson
2022-02-08 09:55:19 -05:00
parent f6db4ee805
commit 620df0e35e
3 changed files with 7 additions and 2 deletions

View File

@@ -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
==========================

View File

@@ -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",

View File

@@ -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)
})