Lines Matching refs:hm
943 const struct lws_http_mount *hm, *hit = NULL;
946 hm = wsi->a.vhost->http.mount_list;
947 while (hm) {
948 if (uri_len >= hm->mountpoint_len &&
949 !strncmp(uri_ptr, hm->mountpoint, hm->mountpoint_len) &&
950 (uri_ptr[hm->mountpoint_len] == '\0' ||
951 uri_ptr[hm->mountpoint_len] == '/' ||
952 hm->mountpoint_len == 1)
955 lws_metrics_tag_wsi_add(wsi, "mnt", hm->mountpoint);
958 if (hm->origin_protocol == LWSMPRO_CALLBACK ||
959 ((hm->origin_protocol == LWSMPRO_CGI ||
973 hm->protocol) &&
974 hm->mountpoint_len > best)) {
975 best = hm->mountpoint_len;
976 hit = hm;
979 hm = hm->mount_next;