diff --git a/ChangeLog b/ChangeLog index 5181e942..a33f9b8b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +Fri Feb 11 10:15:38 CET 2011 + Fixing parameter ordering in documentation (#1659). -wellska + Thu Jan 27 10:51:39 CET 2011 Disable 'EXTRA_CHECKS's by default as suggested in #1652 (I guess it is time). -CG/timn diff --git a/doc/chapters/responseheaders.inc b/doc/chapters/responseheaders.inc index 0c9f7ab2..570776c8 100644 --- a/doc/chapters/responseheaders.inc +++ b/doc/chapters/responseheaders.inc @@ -113,7 +113,7 @@ But in the case of success a response will be constructed directly from the file } response = - MHD_create_response_from_fd_at_offset (fd, sbuf.st_size, 0); + MHD_create_response_from_fd_at_offset (sbuf.st_size, fd, 0); MHD_add_response_header (response, "Content-Type", MIMETYPE); ret = MHD_queue_response (connection, MHD_HTTP_OK, response); MHD_destroy_response (response); diff --git a/doc/examples/responseheaders.c b/doc/examples/responseheaders.c index a78db1b9..db62a9c7 100644 --- a/doc/examples/responseheaders.c +++ b/doc/examples/responseheaders.c @@ -47,7 +47,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, return MHD_NO; } response = - MHD_create_response_from_fd_at_offset (fd, sbuf.st_size, 0); + MHD_create_response_from_fd_at_offset (sbuf.st_size, fd, 0); MHD_add_response_header (response, "Content-Type", MIMETYPE); ret = MHD_queue_response (connection, MHD_HTTP_OK, response); MHD_destroy_response (response);