Skip to content
This repository has been archived by the owner on Feb 14, 2018. It is now read-only.

Commit

Permalink
fix test: get 403 when path outside root
Browse files Browse the repository at this point in the history
  • Loading branch information
haoxin committed Feb 3, 2015
1 parent ee9d7e8 commit 9ffeab8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/file-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ describe('malicious paths', function () {
it('..', function (done) {
request(server)
.get('/../klajsdfkljasdf')
.expect(400, done)
.expect(403, done)
})

it('//', function (done) {
Expand Down Expand Up @@ -253,8 +253,8 @@ describe('if .gz file is no longer existed', function () {
.get('/spdy.js')
.expect('Content-Encoding', 'gzip')
.expect('content-type', /application\/javascript/)
.expect(200, done)
.expect(200, done)
})
})
})
})
})

0 comments on commit 9ffeab8

Please sign in to comment.