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

Function same_authority

modules/http2/h2_push.c:270–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268}
269
270static int same_authority(const h2_request *req, const apr_uri_t *uri)
271{
272 if (uri->scheme != NULL && strcmp(uri->scheme, req->scheme)) {
273 return 0;
274 }
275 if (uri->hostinfo != NULL && strcmp(uri->hostinfo, req->authority)) {
276 return 0;
277 }
278 return 1;
279}
280
281static int set_push_header(void *ctx, const char *key, const char *value)
282{

Callers 1

add_pushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected