Skip to content

Commit

Permalink
Don't call send twice - use the htmlized version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ram Ranganathan committed Mar 10, 2013
1 parent dcf97ab commit c36df50
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,6 @@ var SampleApp = function() {
content += ' ' + k + ': ' + process.env[k] + '\n';
}
content += '}\n</pre><br/>\n'
res.send(content);
res.send('<html>\n' +
' <head><title>Node.js Process Env</title></head>\n' +
' <body>\n<br/>\n' + content + '</body>\n</html>');
Expand Down

0 comments on commit c36df50

Please sign in to comment.