diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2022-04-28 00:35:32 +0200 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2022-04-28 00:35:32 +0200 |
commit | 46464c93e3d34d20901e07ff4601fb9d8462981f (patch) | |
tree | 52cfa9708d86e5cf3518d12023fb76fdb7f91331 /file.c | |
parent | 1cf694b165dd18f2bd4e3bd33ba203b45a20c316 (diff) | |
parent | 51283f9f1df5dedcba35f40367ef5d4ab1a55e0b (diff) |
Merge branch 'master' into bind-to-device-master
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -546,7 +546,8 @@ static void uh_file_dirlist(struct client *cl, struct path_info *pi) } uh_file_response_200(cl, NULL); - ustream_printf(cl->us, "Content-Type: text/html\r\n\r\n"); + ustream_printf(cl->us, "Content-Type: text/html; charset=%s\r\n\r\n", + conf.dirlist_charset ? conf.dirlist_charset : "UTF-8"); uh_chunk_printf(cl, "<html><head><title>Index of %s</title></head>" @@ -753,6 +754,7 @@ static void uh_complete_request(struct client *cl) cl->dispatch.data_blocked = false; uh_invoke_script(cl, dr->d, dr->path ? &dr->pi : NULL); client_poll_post_data(cl); + ustream_poll(cl->us); } } |