Permalink
Browse files

Use HTTPProxy.createServer directly

No need for us to manually create a RoutingProxy.
  • Loading branch information...
aroben committed Apr 16, 2012
1 parent 893fae1 commit 266d95bc487fdc995642d67ac97827a0ca8d5946
Showing with 1 addition and 3 deletions.
  1. +1 −3 lowercaseme.js
View
@@ -3,9 +3,7 @@ var HTTP = require('http')
, URL = require('url')
;
-var proxy = new HTTPProxy.RoutingProxy();
-
-HTTP.createServer(function(request, response) {
+HTTPProxy.createServer(function(request, response, proxy) {
var innerURL = request.url.substr(1);
var parsedURL = URL.parse(innerURL);
if (!parsedURL.hostname) {

0 comments on commit 266d95b

Please sign in to comment.