mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-29 12:41:03 +00:00
Add note for mg_http_serve_dir()
This commit is contained in:
1 parent
f012bcb027
commit
013520b0c0
2 files changed
+5
-1
No files matched your search
@@ -912,6 +912,10 @@ void mg_http_serve_dir(struct mg_connection *c, struct mg_http_message *hm,
|
||||
Serve static files according to the given options. Note that in order to
|
||||
enable SSI, set a `-DMG_ENABLE_SSI=1` build flag.
|
||||
|
||||
<span class="badge bg-danger">NOTE: </span> Avoid double dots `..` in
|
||||
the `root_dir`. If you need to
|
||||
reference an upper-level directory, use absolute path.
|
||||
|
||||
Parameters:
|
||||
- `c` - Connection to use
|
||||
- `hm` - HTTP message, that should be served
|
||||
|
||||
Reference in new issue
Block a user