Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixes #29
closes #30
  • Loading branch information
dougwilson committed Feb 17, 2015
1 parent 0909dce commit 377aa05
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
unreleased
==========

* deps: [email protected]
- Fix regression sending zero-length files

1.9.0 / 2015-02-16
==================

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dependencies": {
"escape-html": "1.0.1",
"parseurl": "~1.3.0",
"send": "0.12.0",
"send": "0.12.1",
"utils-merge": "1.0.0"
},
"devDependencies": {
Expand Down
Empty file added test/fixtures/empty.txt
Empty file.
6 changes: 6 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ describe('serveStatic()', function(){
});
});

it('should serve zero-length files', function (done) {
request(server)
.get('/empty.txt')
.expect(200, '', done)
})

it('should ignore hidden files', function(done){
request(server)
.get('/.hidden')
Expand Down

0 comments on commit 377aa05

Please sign in to comment.