file: fix bug: send "Content-Range" error

Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
Jianhui Zhao committed 2021-01-19 20:25:33 +08:00
1 parent d659ff4e0e
commit f2c55aff77
1 file changed
+1 -1
+1 -1
View File
@@ -337,7 +337,7 @@ void serve_file(struct uh_connection *conn)
conn->printf(conn, "Content-Length: %zu\r\n", end - start + 1);
if (ranged)
conn->printf(conn, "Content-Range: bytes %zu-%zu/%"PRIx64"\r\n", start, end, (uint64_t)st.st_size);
conn->printf(conn, "Content-Range: bytes %zu-%zu/%" PRIu64 "\r\n", start, end, (uint64_t)st.st_size);
else
file_if_gzip(conn, fullpath, mime);