Skip to content
Myr

res.get.js

This file

Path

test/res.get.js

14 lines · 424 bytes · JavaScript

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than d02df2e point at it.

update connectTJ Holowaychukbefore adoptiond02df2e

lines 1–14why, one step back
1
2var express = require('../')3 , res = express.response;45describe('res', function(){6 describe('.get(field)', function(){7 it('should get the response header field', function(){8 res.setHeader('Content-Type', 'text/x-foo');9 res.get('Content-Type').should.equal('text/x-foo');10 res.get('Content-type').should.equal('text/x-foo');11 res.get('content-type').should.equal('text/x-foo');12 })13 })14})