summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2016-01-20 16:27:23 +0100
committerDaniel Mack <github@zonque.org>2016-01-20 16:27:23 +0100
commit8347ebc23a905277e2271b497ce633047eb9bb5f (patch)
tree61b3e889850c9f8f4b3de4db63d5794fd67cdaf3
parent16bd1e98dd2982a8dcfd174ce6ca2ea6042ad139 (diff)
parentda0a9a330537cb77bd43c3522940f9e6850d939e (diff)
Merge pull request #2387 from keszybz/mhd-offset
journal-gatewayd: fix offset
-rw-r--r--src/journal-remote/journal-gatewayd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-gatewayd.c b/src/journal-remote/journal-gatewayd.c
index 7120a08e50..f5fe165fa3 100644
--- a/src/journal-remote/journal-gatewayd.c
+++ b/src/journal-remote/journal-gatewayd.c
@@ -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);