| 577 | } |
| 578 | |
| 579 | const struct h2_priority *h2_cconfig_get_priority(conn_rec *c, const char *content_type) |
| 580 | { |
| 581 | const h2_config *conf = h2_config_get(c); |
| 582 | if (content_type && conf->priorities) { |
| 583 | apr_ssize_t len = (apr_ssize_t)strcspn(content_type, "; \t"); |
| 584 | h2_priority *prio = apr_hash_get(conf->priorities, content_type, len); |
| 585 | return prio? prio : apr_hash_get(conf->priorities, "*", 1); |
| 586 | } |
| 587 | return NULL; |
| 588 | } |
| 589 | |
| 590 | static const char *h2_conf_set_max_streams(cmd_parms *cmd, |
| 591 | void *dirconf, const char *value) |
no test coverage detected