From 4356c6e0d264b06aae8737af3df901198ca758fa Mon Sep 17 00:00:00 2001 From: dotnetcarpenter Date: Wed, 13 May 2015 14:05:54 +0200 Subject: [PATCH] lets speed things up and prepare for ecma6 --- lib/ecstatic.js | 2 ++ lib/ecstatic/opts.js | 2 ++ lib/ecstatic/showdir.js | 2 ++ lib/ecstatic/status-handlers.js | 2 ++ 4 files changed, 8 insertions(+) diff --git a/lib/ecstatic.js b/lib/ecstatic.js index f3149a3..ff06913 100755 --- a/lib/ecstatic.js +++ b/lib/ecstatic.js @@ -1,5 +1,7 @@ #! /usr/bin/env node +'use strict'; + var path = require('path'), fs = require('fs'), url = require('url'), diff --git a/lib/ecstatic/opts.js b/lib/ecstatic/opts.js index 77d78a8..3159bbd 100644 --- a/lib/ecstatic/opts.js +++ b/lib/ecstatic/opts.js @@ -1,5 +1,7 @@ // This is so you can have options aliasing and defaults in one place. +'use strict'; + module.exports = function (opts) { var autoIndex = true, diff --git a/lib/ecstatic/showdir.js b/lib/ecstatic/showdir.js index 731a323..5943b24 100644 --- a/lib/ecstatic/showdir.js +++ b/lib/ecstatic/showdir.js @@ -1,3 +1,5 @@ +'use strict'; + var ecstatic = require('../ecstatic'), fs = require('fs'), path = require('path'), diff --git a/lib/ecstatic/status-handlers.js b/lib/ecstatic/status-handlers.js index 9874534..8fcefcf 100644 --- a/lib/ecstatic/status-handlers.js +++ b/lib/ecstatic/status-handlers.js @@ -1,3 +1,5 @@ +'use strict'; + // not modified exports['304'] = function (res, next) { res.statusCode = 304;