diff --git a/bin/server b/bin/server index ac7d1d4cb386d9012e92bd066953809c5608ee06..2b6a1730ddb063cd1c09a95e0f8ed546c506ca03 100755 --- a/bin/server +++ b/bin/server @@ -42,13 +42,12 @@ var routes = { res.end('not json {'); }, '/headers': function(res) { - var headers = [ - 'Date: Mon, 13 Oct 2014 21:02:27 GMT', - 'Content-Type: text/html; charset=utf-8' - ].join('\r\n') - - res.writeHead(200, {'Content-Type': 'text/plain'}); - res.end(headers + '\r\n'); + res.writeHead(200, { + 'Content-Type': 'text/plain', + 'Date': 'Mon, 13 Oct 2014 21:02:27 GMT', + 'Content-Type': 'text/html; charset=utf-8' + }); + res.end(); } };