rewrite: fix header rewrite test
proxy_pac: use http host header if available for proxy host