Commits

Sean Wilkinson  committed 6f1b963

Fixed the way that I was using Corser inside the NPM module

  • Participants
  • Parent commits 2a18b87

Comments (0)

Files changed (1)

File src/npm-package/lib/service.js

 //      Math.floor(Date.now() / 1000) - process.uptime() // ?
 //
 //                                                      ~~ (c) SRW, 24 Nov 2012
-//                                                  ~~ last updated 31 Jan 2013
+//                                                  ~~ last updated 06 Feb 2013
 
 (function () {
     'use strict';
         };
         rules = [];
         if (config.enable_CORS === true) {
-            enable_cors = require('corser').create({});
+            enable_cors = corser.create({});
             server = http.createServer(function (request, response) {
              // This function needs documentation.
                 enable_cors(request, response, function () {