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'), ...@@ -29,7 +29,7 @@ var https = require('https'),
util = require('util'), util = require('util'),
colors = require('colors'), colors = require('colors'),
httpProxy = require('../../lib/node-http-proxy'), httpProxy = require('../../lib/node-http-proxy'),
helpers = require('./../test/helpers'); helpers = require('../../test/helpers');
var opts = helpers.loadHttps(); var opts = helpers.loadHttps();
......
...@@ -29,7 +29,7 @@ var https = require('https'), ...@@ -29,7 +29,7 @@ var https = require('https'),
util = require('util'), util = require('util'),
colors = require('colors'), colors = require('colors'),
httpProxy = require('../../lib/node-http-proxy'), httpProxy = require('../../lib/node-http-proxy'),
helpers = require('./../test/helpers'); helpers = require('../../test/helpers');
var opts = helpers.loadHttps(); var opts = helpers.loadHttps();
......
var Store = require('./lib/store') var Store = require('../helpers/store')
, http = require('http') , http = require('http')
http.createServer(new Store().handler()).listen(7531, function () { http.createServer(new Store().handler()).listen(7531, function () {
...@@ -42,7 +42,7 @@ 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 //don't worry about incoming contont type
//bodyParser.parse[''] = JSON.parse //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 //refactor the body parser and re-streamer into a separate package
bodyParser(), bodyParser(),
//body parser absorbs the data and end events before passing control to the next //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') , http = require('http')
// //
...@@ -24,7 +24,7 @@ var Store = require('./lib/store') ...@@ -24,7 +24,7 @@ var Store = require('./lib/store')
http.createServer(new Store().handler()).listen(7531) http.createServer(new Store().handler()).listen(7531)
require('http-proxy').createServer( require('../../lib/node-http-proxy').createServer(
require('connect-jsonp')(true), require('connect-jsonp')(true),
'localhost', 7531 'localhost', 7531
).listen(1337) ).listen(1337)
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
var util = require('util'), var util = require('util'),
colors = require('colors'), colors = require('colors'),
http = require('http'), http = require('http'),
httpProxy = require('http-proxy'); httpProxy = require('../../lib/node-http-proxy');
// //
// Now we set up our proxy. // Now we set up our proxy.
......
var util = require('util'), var util = require('util'),
colors = require('colors'), colors = require('colors'),
http = require('http'), http = require('http'),
httpProxy = require('http-proxy'), httpProxy = require('../../lib/node-http-proxy'),
Store = require('./lib/store') Store = require('../helpers/store')
http.createServer(new Store().handler()).listen(7531) 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