mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-18 10:59:45 +00:00
Update README.md
added missing parameter in sample code of `mg_match`.
This commit is contained in:
1 parent
21ffe8e3f3
commit
82e1cac1c7
1 file changed
+1
-1
+1
-1
@@ -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`.
|
||||
}
|
||||
```
|
||||
|
||||
Reference in new issue
Block a user