mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-20 11:19:56 +00:00
Update mg_http_serve_file() doc
This commit is contained in:
1 parent
b7a79a556a
commit
a4c9d1ecb7
1 file changed
+6
-1
+6
-1
@@ -650,7 +650,12 @@ void mg_http_serve_file(struct mg_connection *, struct mg_http_message *hm,
|
||||
const char *extra_headers);
|
||||
```
|
||||
|
||||
Serve static file.
|
||||
Serve static file. Note that the `extra_headers` must end with `\r\n`. Here
|
||||
is an example call:
|
||||
|
||||
```c
|
||||
mg_http_serve_file(c, hm, "a.png", "image/png", "AA: bb\r\nCC: dd\r\n");
|
||||
```
|
||||
|
||||
|
||||
### mg\_http\_reply()
|
||||
|
||||
Reference in new issue
Block a user