spec.plugins.content-length.js
This file
Path
spec/spec.plugins.content-length.js
28 lines · 736 bytes · JavaScript
Last changed by
Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b
History of this fileTake it
The walk stopped after 200 commits: lines older than fbf547d point at it.
Added Session classvisionmediabefore adoptionfbf547d
lines 1–14why, one step back12describe 'Express'3 before_each4 reset()5 use(require('express/plugins/content-length').ContentLength)6 end7 8 describe 'ContentLength'9 describe 'on'10 describe 'response'11 it 'should set the content-length header'12 get('/style.css', function(){13 return 'body { background: #000; }'14 })Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b
line 15why, one step back15 get('/style.css').headers['Content-Length'].should.eql 26Added Session classvisionmediabefore adoptionfbf547d
lines 16–19why, one step back16 end17 18 it 'should not override when manually set'19 get('/style.css', function(){Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b
line 20why, one step back20 this.header('Content-Length', 10)Added Session classvisionmediabefore adoptionfbf547d
lines 21–22why, one step back21 return 'body { background: #000; }'22 })Merge branch 'master' of http://github.com/visionmedia/expressGuillermo Rauchbefore adoption8ef6a0b
line 23why, one step back23 get('/style.css').headers['Content-Length'].should.eql 10Added Session classvisionmediabefore adoptionfbf547d
lines 24–28why, one step back24 end25 end26 end27 end28end