fix compile error for 32bit os
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>main^2
parent
c28eaa2bb7
commit
293a39f201
|
@ -332,7 +332,7 @@ void serve_file(struct uh_connection *conn)
|
||||||
conn->printf(conn, "Content-Length: %zu\r\n", end - start + 1);
|
conn->printf(conn, "Content-Length: %zu\r\n", end - start + 1);
|
||||||
|
|
||||||
if (ranged)
|
if (ranged)
|
||||||
conn->printf(conn, "Content-Range: bytes %zu-%zu/%zu\r\n", start, end, st.st_size);
|
conn->printf(conn, "Content-Range: bytes %zu-%zu/%"PRIx64"\r\n", start, end, (uint64_t)st.st_size);
|
||||||
else
|
else
|
||||||
file_if_gzip(conn, fullpath, mime);
|
file_if_gzip(conn, fullpath, mime);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue