Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed a module name bug in the http module.

  • Loading branch information...
commit 68b056e13f0ee5d9e015f9eed777e22e8c6c7b1f 1 parent 43bc32d
Kris Kowal kriskowal authored

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 3 lib/http.js
7 lib/http.js
@@ -3,11 +3,12 @@
3 3 // -- cadorn Christoph Dorn TODO
4 4 // -- veged Sergey Berezhnoy TODO
5 5
6   -var implementation = require('http-engine');
  6 +var ENGINE = require('http-engine');
  7 +var FS = require("file");
7 8
8 9 exports.open = function (url, mode, options) {
9 10 // TODO mode negotiation, particularly for binary vs text buffering
10   - return new implementation.IO(url);
  11 + return new ENGINE.IO(url);
11 12 };
12 13
13 14 exports.read = function (url) {
@@ -22,6 +23,6 @@ exports.read = function (url) {
22 23 // TODO resolve the source as a file URL
23 24 exports.copy = function (source, target, mode) {
24 25 mode = mode || 'b';
25   - fs.path(target).write(exports.read(source, mode), mode);
  26 + return FS.path(target).write(exports.read(source, mode), mode);
26 27 };
27 28

0 comments on commit 68b056e

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