Handle #1459 - deprecate mg_globmatch, introduce mg_match()

This commit is contained in:
Sergey Lyubka committed 2022-01-29 11:03:54 +00:00
1 parent 768f67ae0a
commit 63b880e624
10 files changed
+184 -102

No files matched your search

+1 -1
View File
@@ -808,7 +808,7 @@ struct mg_str mg_http_get_header_var(struct mg_str s, struct mg_str v) {
}
bool mg_http_match_uri(const struct mg_http_message *hm, const char *glob) {
return mg_globmatch(glob, strlen(glob), hm->uri.ptr, hm->uri.len);
return mg_match(hm->uri, mg_str(glob), NULL);
}
static size_t get_chunk_length(const char *buf, size_t len, size_t *ll) {