| 268 | } |
| 269 | |
| 270 | static 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 | |
| 281 | static int set_push_header(void *ctx, const char *key, const char *value) |
| 282 | { |