mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-24 20:21:49 +00:00
Handle #1459 - deprecate mg_globmatch, introduce mg_match()
This commit is contained in:
1 parent
768f67ae0a
commit
63b880e624
10 files changed
+184
-102
No files matched your search
+1
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user