mirror of
https://github.com/cesanta/mongoose.git
synced 2024-11-28 05:39:00 +08:00
Update README.md
added missing parameter in sample code of `mg_match`.
This commit is contained in:
parent
21ffe8e3f3
commit
82e1cac1c7
@ -2337,7 +2337,7 @@ Usage example:
|
||||
```c
|
||||
// Assume that hm->uri holds /foo/bar. Then we can match the requested URI:
|
||||
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`.
|
||||
}
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user