]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-gatewayd: fix offset 2387/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Jan 2016 15:12:18 +0000 (10:12 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 20 Jan 2016 15:12:18 +0000 (10:12 -0500)
I was checking something when writing the patch and
committed this by mistake.

src/journal-remote/journal-gatewayd.c

index 7120a08e502bda1eada57a914c4119c35298949f..f5fe165fa33abb865e65284372b55d76f83ce909 100644 (file)
@@ -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);