mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-17 19:30:36 +00:00
1 file changed
+1
-1
+1
-1
@@ -2337,7 +2337,7 @@ Usage example:
|
|||||||
```c
|
```c
|
||||||
// Assume that hm->uri holds /foo/bar. Then we can match the requested URI:
|
// Assume that hm->uri holds /foo/bar. Then we can match the requested URI:
|
||||||
struct mg_str caps[3]; // Two wildcard symbols '*' plus 1
|
struct mg_str caps[3]; // Two wildcard symbols '*' plus 1
|
||||||
if (mg_match(hm->uri, mg_str("/*/*"))) {
|
if (mg_match(hm->uri, mg_str("/*/*"), caps)) {
|
||||||
// caps[0] holds `foo`, caps[1] holds `bar`.
|
// caps[0] holds `foo`, caps[1] holds `bar`.
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in new issue
Block a user