From 48aa7c29d3e30ab973435f80a985eed99e9ae535 Mon Sep 17 00:00:00 2001 From: Timothy Stapleton Date: Sun, 16 Aug 2015 23:26:48 -0700 Subject: [PATCH] updated the static file section to not return a 200 code and plaintext message. --- chapter6/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chapter6/index.js b/chapter6/index.js index 261bf5c..fa6f2df 100644 --- a/chapter6/index.js +++ b/chapter6/index.js @@ -50,8 +50,7 @@ http.createServer(function (req, res) { } else { // try to send the static file - res.writeHead(200); - res.end('static file maybe'); + staticFile(req.url, res); } }).listen(1337, '127.0.0.1');