From 54e92da4a77560e3488d209ea46d06ec903950c0 Mon Sep 17 00:00:00 2001 From: Sean Lavine Date: Wed, 23 Apr 2014 17:16:37 -0700 Subject: [PATCH] use text/plain content-type --- Example.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Example.md b/Example.md index d40707c..090ddb8 100644 --- a/Example.md +++ b/Example.md @@ -19,11 +19,11 @@ var server = http.createServer(function(req, res) { // An error occurred, remove the client from the connection pool. // A truthy value passed to done will remove the connection from the pool - // instead of simply returning it to be re-used. - // In this case, if we have successfully, received a client (truthy) + // instead of simply returning it to be reused. + // In this case, if we have successfully received a client (truthy) // then it will be removed from the pool. done(client); - res.writeHead(500, {'content-type': 'text/html'}); + res.writeHead(500, {'content-type': 'text/plain'}); res.end('An error occurred'); return true; }; @@ -40,9 +40,9 @@ var server = http.createServer(function(req, res) { // handle an error from the query if(handleError(err)) return; - // return the client to the connection pool for other requests to use + // return the client to the connection pool for other requests to reuse done(); - res.writeHead(200, {'content-type': 'text/html'}); + res.writeHead(200, {'content-type': 'text/plain'}); res.end('You are visitor number ' + result.rows[0].count); }); });