aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--response_generation_sendfile.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/response_generation_sendfile.c b/response_generation_sendfile.c
index 5833364..46e4389 100644
--- a/response_generation_sendfile.c
+++ b/response_generation_sendfile.c
@@ -38,16 +38,16 @@ answer_to_connection (void *cls,
38 if ((fd = open (file, O_RDONLY)) == -1) 38 if ((fd = open (file, O_RDONLY)) == -1)
39 return 1; 39 return 1;
40 response = MHD_create_response_from_fd64 (buf.st_size, fd); 40 response = MHD_create_response_from_fd64 (buf.st_size, fd);
41 if (NULL == response) 41 //if (NULL == response)
42 { 42 //{
43 if (0 != close (fd)) 43 // if (0 != close (fd))
44 abort (); 44 // abort ();
45 return MHD_NO; 45 // return MHD_NO;
46 } 46 //}
47 ret = MHD_queue_response (connection, MHD_HTTP_OK, response); 47 ret = MHD_queue_response (connection, MHD_HTTP_OK, response);
48 MHD_destroy_response (response); 48 MHD_destroy_response (response);
49 if (MHD_NO == ret) 49 //if (MHD_NO == ret)
50 abort (); 50 // abort ();
51 return ret; 51 return ret;
52} 52}
53 53