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 8ac3e80 point at it.

Merge branch 'master' of github.com:visionmedia/expressTJ Holowaychukbefore adoption8ac3e80

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})