Add extra headers param to mg_http_serve_file

This commit is contained in:
cpq committed 2021-01-07 12:48:20 +00:00
1 parent 03ab9e4e0d
commit b7a79a556a
7 files changed
+14 -13

No files matched your search

+2 -1
View File
@@ -646,7 +646,8 @@ enable SSI, set a `-DMG_ENABLE_SSI=1` build flag.
```c
void mg_http_serve_file(struct mg_connection *, struct mg_http_message *hm,
const char *path, const char *mimetype);
const char *path, const char *mimetype,
const char *extra_headers);
```
Serve static file.