Hacked-up version of the non-proxy http module