mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 00:19:48 +01:00
feat: upgrade to serve-static@0.16.0
This commit is contained in:
parent
9ebe5d500d
commit
4c9ddc1c47
|
|
@ -1,5 +1,7 @@
|
|||
unreleased
|
||||
==========
|
||||
* deps: serve-static@0.16.0
|
||||
* Remove link renderization in html while redirecting
|
||||
* deps: send@0.19.0
|
||||
* Remove link renderization in html while redirecting
|
||||
* deps: body-parser@0.6.0
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
"range-parser": "~1.2.1",
|
||||
"safe-buffer": "5.2.1",
|
||||
"send": "0.19.0",
|
||||
"serve-static": "1.15.0",
|
||||
"serve-static": "1.16.0",
|
||||
"setprototypeof": "1.2.0",
|
||||
"statuses": "2.0.1",
|
||||
"type-is": "~1.6.18",
|
||||
|
|
|
|||
|
|
@ -486,7 +486,7 @@ describe('express.static()', function () {
|
|||
request(this.app)
|
||||
.get('/users')
|
||||
.expect('Location', '/users/')
|
||||
.expect(301, /<a href="\/users\/">/, done)
|
||||
.expect(301, /\/users\//, done)
|
||||
})
|
||||
|
||||
it('should redirect directories with query string', function (done) {
|
||||
|
|
@ -508,7 +508,7 @@ describe('express.static()', function () {
|
|||
.get('/snow')
|
||||
.expect('Location', '/snow%20%E2%98%83/')
|
||||
.expect('Content-Type', /html/)
|
||||
.expect(301, />Redirecting to <a href="\/snow%20%E2%98%83\/">\/snow%20%E2%98%83\/<\/a></, done)
|
||||
.expect(301, />Redirecting to \/snow%20%E2%98%83\/</, done)
|
||||
})
|
||||
|
||||
it('should respond with default Content-Security-Policy', function (done) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user