MCPcopy Create free account
hub / github.com/apache/httpd / md_util_abs_http_uri_check

Function md_util_abs_http_uri_check

modules/md/md_util.c:1019–1036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1017}
1018
1019apr_status_t md_util_abs_http_uri_check(apr_pool_t *p, const char *uri, const char **perr)
1020{
1021 apr_uri_t uri_parsed;
1022 apr_status_t rv;
1023
1024 if (APR_SUCCESS == (rv = uri_check(&uri_parsed, p, uri, perr))) {
1025 if (!uri_parsed.scheme) {
1026 *perr = "missing uri scheme";
1027 return APR_EINVAL;
1028 }
1029 if (apr_cstr_casecmp("http", uri_parsed.scheme)
1030 && apr_cstr_casecmp("https", uri_parsed.scheme)) {
1031 *perr = "uri scheme must be http or https";
1032 return APR_EINVAL;
1033 }
1034 }
1035 return rv;
1036}
1037
1038/* try and retry for a while **********************************************************************/
1039

Callers 1

md_config_set_proxyFunction · 0.85

Calls 1

uri_checkFunction · 0.85

Tested by

no test coverage detected