Skip to content
Myr

feat: upgrade to serve-static@0.16.0

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ulises Gascón · committed by Ulises Gascón · parent 9ebe5d5 · Browse files · 3 files+5 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+5 added−3 removed

  • tests:+2 added−2 removed
  • other:+3 added−1 removed

3 files+5 added−3 removed

modified:test/express.static.js+2 added-2 removed
484 unmodified lines
485 it('should include HTML link', function (done) {486 request(this.app)487 .get('/users')488 .expect('Location', '/users/')489 .expect(301, /<a href="\/users\/">/, done)489 .expect(301, /\/users\//, done)490 })491492 it('should redirect directories with query string', function (done) {493 request(this.app)
13 unmodified lines
507 request(this.app)508 .get('/snow')509 .expect('Location', '/snow%20%E2%98%83/')510 .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)512 })513514 it('should respond with default Content-Security-Policy', function (done) {515 request(this.app)
299 unmodified lines
modified:History.md+2 added
1unreleased2==========3 * deps: serve-static@0.16.04 * Remove link renderization in html while redirecting5 * deps: send@0.19.06 * Remove link renderization in html while redirecting7 * deps: body-parser@0.6.08 * add `depth` option to customize the depth level in the parser
3625 unmodified lines
modified:package.json+1 added-1 removed