Commit 6c6fec09 authored by Charlie Robbins's avatar Charlie Robbins

Merge pull request #118 from nodejitsu/gh-117

[fix] Examples have working require paths now.
parents 5ad77395 2e8d4c6e
......@@ -29,7 +29,7 @@ var https = require('https'),
util = require('util'),
colors = require('colors'),
httpProxy = require('../../lib/node-http-proxy'),
helpers = require('./../test/helpers');
helpers = require('../../test/helpers');
var opts = helpers.loadHttps();
......
......@@ -29,7 +29,7 @@ var https = require('https'),
util = require('util'),
colors = require('colors'),
httpProxy = require('../../lib/node-http-proxy'),
helpers = require('./../test/helpers');
helpers = require('../../test/helpers');
var opts = helpers.loadHttps();
......
var Store = require('./lib/store')
var Store = require('../helpers/store')
, http = require('http')
http.createServer(new Store().handler()).listen(7531, function () {
......@@ -42,7 +42,7 @@ http.createServer(new Store().handler()).listen(7531, function () {
//don't worry about incoming contont type
//bodyParser.parse[''] = JSON.parse
require('http-proxy').createServer(
require('../../lib/node-http-proxy').createServer(
//refactor the body parser and re-streamer into a separate package
bodyParser(),
//body parser absorbs the data and end events before passing control to the next
......
var Store = require('./lib/store')
var Store = require('../helpers/store')
, http = require('http')
//
......@@ -24,7 +24,7 @@ var Store = require('./lib/store')
http.createServer(new Store().handler()).listen(7531)
require('http-proxy').createServer(
require('../../lib/node-http-proxy').createServer(
require('connect-jsonp')(true),
'localhost', 7531
).listen(1337)
......@@ -27,7 +27,7 @@
var util = require('util'),
colors = require('colors'),
http = require('http'),
httpProxy = require('http-proxy');
httpProxy = require('../../lib/node-http-proxy');
//
// Now we set up our proxy.
......
var util = require('util'),
colors = require('colors'),
http = require('http'),
httpProxy = require('http-proxy'),
Store = require('./lib/store')
httpProxy = require('../../lib/node-http-proxy'),
Store = require('../helpers/store')
http.createServer(new Store().handler()).listen(7531)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment