Permalink
Browse files

Content-Range

  • Loading branch information...
1 parent 4e192c0 commit 79f9e721be124dc97db887db1ac748b7481e34e9 @tj tj committed Nov 12, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/static.js
View
@@ -120,6 +120,13 @@ describe('connect.static()', function(){
.expect('1', done);
})
+ it('should set Content-Range', function(done){
+ app.request()
+ .get('/nums')
+ .set('Range', 'bytes=2-5')
+ .expect('Content-Range', 'bytes 2-5/9', done);
+ })
+
it('should respond with 206 "Partial Content"', function(done){
app.request()
.get('/nums')

0 comments on commit 79f9e72

Please sign in to comment.