MCPcopy Index your code
hub / github.com/apache/httpd / proxy_match_word

Function proxy_match_word

modules/proxy/proxy_util.c:809–813  ·  view source on GitHub ↗

Return TRUE if string "str2" occurs literally in "str1" */

Source from the content-addressed store, hash-verified

807
808/* Return TRUE if string "str2" occurs literally in "str1" */
809static int proxy_match_word(struct dirconn_entry *This, request_rec *r)
810{
811 const char *host = proxy_get_host_of_request(r);
812 return host != NULL && ap_strstr_c(host, This->name) != NULL;
813}
814
815/* Backwards-compatible interface. */
816PROXY_DECLARE(int) ap_proxy_checkproxyblock(request_rec *r, proxy_server_conf *conf,

Callers

nothing calls this directly

Calls 2

ap_strstr_cFunction · 0.85

Tested by

no test coverage detected