Skip to content
Browse files

Fixed a module name bug in the http module.

  • Loading branch information...
1 parent 43bc32d commit 68b056e13f0ee5d9e015f9eed777e22e8c6c7b1f @kriskowal kriskowal committed Mar 1, 2010
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/http.js
View
7 lib/http.js
@@ -3,11 +3,12 @@
// -- cadorn Christoph Dorn TODO
// -- veged Sergey Berezhnoy TODO
-var implementation = require('http-engine');
+var ENGINE = require('http-engine');
+var FS = require("file");
exports.open = function (url, mode, options) {
// TODO mode negotiation, particularly for binary vs text buffering
- return new implementation.IO(url);
+ return new ENGINE.IO(url);
};
exports.read = function (url) {
@@ -22,6 +23,6 @@ exports.read = function (url) {
// TODO resolve the source as a file URL
exports.copy = function (source, target, mode) {
mode = mode || 'b';
- fs.path(target).write(exports.read(source, mode), mode);
+ return FS.path(target).write(exports.read(source, mode), mode);
};

0 comments on commit 68b056e

Please sign in to comment.
Something went wrong with that request. Please try again.