diff options
Diffstat (limited to 'src/lib/response_from_fd.c')
-rw-r--r-- | src/lib/response_from_fd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/response_from_fd.c b/src/lib/response_from_fd.c index ea486600..cdeb7aa5 100644 --- a/src/lib/response_from_fd.c +++ b/src/lib/response_from_fd.c | |||
@@ -180,7 +180,8 @@ MHD_response_from_fd (enum MHD_HTTP_StatusCode sc, | |||
180 | ((int64_t) (size + offset) < 0) ) | 180 | ((int64_t) (size + offset) < 0) ) |
181 | return NULL; | 181 | return NULL; |
182 | 182 | ||
183 | response = MHD_response_from_callback (size, | 183 | response = MHD_response_from_callback (sc, |
184 | size, | ||
184 | 4 * 1024, | 185 | 4 * 1024, |
185 | &file_reader, | 186 | &file_reader, |
186 | NULL, | 187 | NULL, |
@@ -188,7 +189,6 @@ MHD_response_from_fd (enum MHD_HTTP_StatusCode sc, | |||
188 | if (NULL == response) | 189 | if (NULL == response) |
189 | return NULL; | 190 | return NULL; |
190 | response->fd = fd; | 191 | response->fd = fd; |
191 | response->status_code = sc; | ||
192 | response->fd_off = offset; | 192 | response->fd_off = offset; |
193 | response->crc_cls = response; | 193 | response->crc_cls = response; |
194 | return response; | 194 | return response; |