Skip to content
Myr

Changed; charsets are no longer implied

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 0a667ff · Browse files · 2 files+6 added−6 removed
This commit

State

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

Diff stats

2 files+6 added−6 removed

  • tests:+6 added−6 removed

2 files+6 added−6 removed

modified:test/response.test.js+4 added-4 removed
50 unmodified lines
51 });5253 assert.response(app,54 { url: '/html' },55 { body: '<p>test</p>', headers: { 'Content-Language': 'en', 'Content-Type': 'text/html; charset=utf-8' }});55 { body: '<p>test</p>', headers: { 'Content-Language': 'en', 'Content-Type': 'text/html' }});56 assert.response(app,57 { url: '/json' },58 { body: '{"foo":"bar"}', status: 201, headers: { 'Content-Type': 'application/json', 'X-Foo': 'baz' }});59
14 unmodified lines
74 { body: '{"foo":"bar"}', status: 201, headers: { 'Content-Type': 'application/json', 'X-Foo': 'baz' }});7576 assert.response(app,77 { url: '/text' },78 { body: 'wahoo', headers: { 'Content-Type': 'text/plain; charset=utf-8', 'X-Foo': 'bar' }});78 { body: 'wahoo', headers: { 'Content-Type': 'text/plain', 'X-Foo': 'bar' }});79 assert.response(app,80 { url: '/status' },81 { body: 'Not Found', status: 404, headers: { 'Content-Type': 'text/plain; charset=utf-8' }});81 { body: 'Not Found', status: 404, headers: { 'Content-Type': 'text/plain' }});82 assert.response(app,83 { url: '/error' },84 { body: 'Oh shit!', status: 500, headers: { 'Content-Type': 'text/plain' }});85 assert.response(app,
22 unmodified lines
108 });109 110 assert.response(app,111 { url: '/html' },112 { body: '<p>yay</p>', headers: { 'Content-Type': 'text/html; charset=utf-8' }});112 { body: '<p>yay</p>', headers: { 'Content-Type': 'text/html' }});113 assert.response(app,114 { url: '/json' },115 { headers: { 'Content-Type': 'application/json' }});116 },
295 unmodified lines
modified:test/view.test.js+2 added-2 removed
178 unmodified lines
179 });180181 assert.response(app,182 { url: '/' },183 { body: '<p>Welcome</p>', headers: { 'Content-Type': 'text/html; charset=utf-8' }});183 { body: '<p>Welcome</p>', headers: { 'Content-Type': 'text/html' }});184 assert.response(app,185 { url: '/jade' },186 { body: '<p>Welcome</p>' });187 assert.response(app,
179 unmodified lines
367 assert.response(app,368 { url: '/' },369 { body: '<p>:(</p>', status: 500, headers: {370 'X-Foo': 'bar',371 'Content-Type': 'text/html; charset=utf-8'371 'Content-Type': 'text/html'372 }});373 },374 375 'test #render() view helpers': function(beforeExit){
528 unmodified lines