From f2c55aff777f02dbad3680d7c3332ca17152d768 Mon Sep 17 00:00:00 2001 From: Jianhui Zhao Date: Tue, 19 Jan 2021 20:25:33 +0800 Subject: [PATCH] file: fix bug: send "Content-Range" error Signed-off-by: Jianhui Zhao --- src/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file.c b/src/file.c index 05babb8..20800c0 100644 --- a/src/file.c +++ b/src/file.c @@ -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);