mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
Previous approach failed in case of routing table like:
{
'domain.com': 'localhost:9000',
'a.domain.com': 'localhost:9001'
}
without `hostnameOnly`. When routing request to `a.domain.com`,
`RegExp` matched first entry (`domain.com`) and returned it.