aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorng0@n0.is <ng0@n0.is>2019-06-05 12:03:31 +0000
committerng0@n0.is <ng0@n0.is>2019-06-05 12:03:31 +0000
commit8a0df3963f08cd91012170376bbe0c519c76be86 (patch)
tree2eb407da655608bd1e599272d74e28a92b036ebd
parent7636d038a6351d8a7ac47d10c796cceaabd54f1c (diff)
downloadlibmicrohttpd-gsoc2019-8a0df3963f08cd91012170376bbe0c519c76be86.tar.gz
libmicrohttpd-gsoc2019-8a0df3963f08cd91012170376bbe0c519c76be86.zip
++
-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