Skip to content

Commit

Permalink
replace 405 status by more appropriate 403.
Browse files Browse the repository at this point in the history
also added missing test.html file...
  • Loading branch information
ngryman committed Aug 22, 2012
1 parent 241055f commit de83771
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Empty file added node/test/fixtures/test.html
Empty file.
8 changes: 4 additions & 4 deletions node/test/h5b.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ describe('h5b', function() {
it('should be blocked for .' + f, function(done) {
helper.request()
.get('/.' + f)
.expect(405, done);
.expect(403, done);
});
});
});
Expand All @@ -308,7 +308,7 @@ describe('h5b', function() {
it('should be blocked for .' + f, function(done) {
helper.request()
.get('/.' + f)
.expect(405, done);
.expect(403, done);
});
});
});
Expand Down Expand Up @@ -599,7 +599,7 @@ describe('h5b', function() {
it('should be blocked for .' + f, function(done) {
helper.request()
.get('/.' + f)
.expect(405, done);
.expect(403, done);
});
});
});
Expand All @@ -609,7 +609,7 @@ describe('h5b', function() {
it('should be blocked for .' + f, function(done) {
helper.request()
.get('/.' + f)
.expect(405, done);
.expect(403, done);
});
});
});
Expand Down

0 comments on commit de83771

Please sign in to comment.