MCPcopy Create free account
hub / github.com/apache/trafficserver / remove_host_name_from_url

Method remove_host_name_from_url

src/proxy/http/HttpTransactHeaders.cc:901–906  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////// Deal with lame-o servers by removing the host name from the url.

Source from the content-addressed store, hash-verified

899////////////////////////////////////////////////////////////////////////
900// Deal with lame-o servers by removing the host name from the url.
901void
902HttpTransactHeaders::remove_host_name_from_url(HTTPHdr *outgoing_request)
903{
904 URL *outgoing_url = outgoing_request->url_get();
905 outgoing_url->nuke_proxy_stuff();
906}
907
908void
909HttpTransactHeaders::add_global_user_agent_header_to_request(const OverridableHttpConfigParams *http_txn_conf, HTTPHdr *header)

Callers

nothing calls this directly

Calls 2

url_getMethod · 0.80
nuke_proxy_stuffMethod · 0.80

Tested by

no test coverage detected