Skip to content
Myr

Added .charset + res.send() test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent a5b6929 · Browse files · 1 file+13 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+13 added−0 removed

  • tests:+13 added−0 removed

1 file+13 added−0 removed

modified:test/response.test.js+13 added
560 unmodified lines
561 562 assert.response(app,563 { url: '/', method: 'HEAD' },564 { body: '', headers: { 'Content-Length': 11 }});565 },566 567 'test .charset': function(){568 var app = express.createServer();569570 app.get('/', function(req, res){571 res.charset = 'utf8';572 res.send('<p>hey</p>');573 });574575 assert.response(app,576 { url: '/' },577 { headers: { 'Content-Type': 'text/html; charset=utf8' }});578 }579};