Skip to content

Commit 4c9ddc1

Browse files
committed
feat: upgrade to serve-static@0.16.0
1 parent 9ebe5d5 commit 4c9ddc1

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

History.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
unreleased
22
==========
3+
* deps: serve-static@0.16.0
4+
* Remove link renderization in html while redirecting
35
* deps: send@0.19.0
46
* Remove link renderization in html while redirecting
57
* deps: body-parser@0.6.0

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"range-parser": "~1.2.1",
5454
"safe-buffer": "5.2.1",
5555
"send": "0.19.0",
56-
"serve-static": "1.15.0",
56+
"serve-static": "1.16.0",
5757
"setprototypeof": "1.2.0",
5858
"statuses": "2.0.1",
5959
"type-is": "~1.6.18",

test/express.static.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ describe('express.static()', function () {
486486
request(this.app)
487487
.get('/users')
488488
.expect('Location', '/users/')
489-
.expect(301, /<a href="\/users\/">/, done)
489+
.expect(301, /\/users\//, done)
490490
})
491491

492492
it('should redirect directories with query string', function (done) {
@@ -508,7 +508,7 @@ describe('express.static()', function () {
508508
.get('/snow')
509509
.expect('Location', '/snow%20%E2%98%83/')
510510
.expect('Content-Type', /html/)
511-
.expect(301, />Redirecting to <a href="\/snow%20%E2%98%83\/">\/snow%20%E2%98%83\/<\/a></, done)
511+
.expect(301, />Redirecting to \/snow%20%E2%98%83\/</, done)
512512
})
513513

514514
it('should respond with default Content-Security-Policy', function (done) {

0 commit comments

Comments
 (0)