diff options
Diffstat (limited to 'hittpd.c')
-rw-r--r-- | hittpd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hittpd.c b/hittpd.c index 53e747d..26f628c 100644 --- a/hittpd.c +++ b/hittpd.c @@ -731,6 +731,11 @@ file: if (data->last > st.st_size) data->last = st.st_size; + if (data->first == data->last) { + send_rns(p, st.st_size); + return 0; + } + send_ok(p, st.st_mtime, mimetype(ext), st.st_size); // XXX send short file directly? |