aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/daemontest_get_sendfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/daemontest_get_sendfile.c')
-rw-r--r--src/testcurl/daemontest_get_sendfile.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/testcurl/daemontest_get_sendfile.c b/src/testcurl/daemontest_get_sendfile.c
index 44a1825d..622b7af2 100644
--- a/src/testcurl/daemontest_get_sendfile.c
+++ b/src/testcurl/daemontest_get_sendfile.c
@@ -89,7 +89,12 @@ ahc_echo (void *cls,
89 *unused = NULL; 89 *unused = NULL;
90 fd = open ("daemontest_get_sendfile.c", O_RDONLY); 90 fd = open ("daemontest_get_sendfile.c", O_RDONLY);
91 if (fd == -1) 91 if (fd == -1)
92 abort (); 92 {
93 fprintf (stderr, "Failed to open `%s': %s\n",
94 "daemontest_get_sendfile.c",
95 STRERROR (errno));
96 exit (1);
97 }
93 response = MHD_create_response_from_fd (strlen (TESTSTR), fd); 98 response = MHD_create_response_from_fd (strlen (TESTSTR), fd);
94 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); 99 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
95 MHD_destroy_response (response); 100 MHD_destroy_response (response);