mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
Merge pull request #2387 from keszybz/mhd-offset
journal-gatewayd: fix offset
This commit is contained in:
commit
8347ebc23a
@ -700,7 +700,7 @@ static int request_handler_file(
|
||||
if (fstat(fd, &st) < 0)
|
||||
return mhd_respondf(connection, MHD_HTTP_INTERNAL_SERVER_ERROR, "Failed to stat file: %m\n");
|
||||
|
||||
response = MHD_create_response_from_fd_at_offset64(st.st_size, fd, MHD_VERSION);
|
||||
response = MHD_create_response_from_fd_at_offset64(st.st_size, fd, 0);
|
||||
if (!response)
|
||||
return respond_oom(connection);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user