Fixes isInternalRequest to use host (versus URL)