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

Function error_code_overridden

modules/proxy/proxy_util.c:4229–4252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4227}
4228
4229static APR_INLINE int error_code_overridden(const int *elts, int nelts,
4230 int code)
4231{
4232 int min = 0;
4233 int max = nelts - 1;
4234 AP_DEBUG_ASSERT(max >= 0);
4235
4236 while (min < max) {
4237 int mid = (min + max) / 2;
4238 int val = elts[mid];
4239
4240 if (val < code) {
4241 min = mid + 1;
4242 }
4243 else if (val > code) {
4244 max = mid - 1;
4245 }
4246 else {
4247 return 1;
4248 }
4249 }
4250
4251 return elts[min] == code;
4252}
4253
4254PROXY_DECLARE(int) ap_proxy_should_override(proxy_dir_conf *conf, int code)
4255{

Callers 1

ap_proxy_should_overrideFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected