nodejitsu/node-http-proxy — pull request #245 by 1stvamp (2012-05-15 02:45:26+00:00)
Title: Add path only routes

Small patch to detect if a route path begins with a slash (/) and if so treat it as a path only route, e.g. we don't care about routing via hostname.

This because for our own purposes we only need to route from a single thin layer server, with paths defining routing (e.g. /bar => bar.example.com, /baz => baz.example.com, /foo/test?q= => foo.example.com/test?q= etc.).

Given the simple slice and match required I think this should make a negligible production performance difference and there must be other peeps out there with this use case.