libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 6abbeb5f407232f9742970232ca2ab9e37f62e1f
parent 5eba2735dcd3e185920de5114fd89c57c3503232
Author: Christian Grothoff <christian@grothoff.org>
Date:   Fri, 11 Feb 2011 09:16:23 +0000

mantis 1659

Diffstat:
MChangeLog | 3+++
Mdoc/chapters/responseheaders.inc | 2+-
Mdoc/examples/responseheaders.c | 2+-
3 files changed, 5 insertions(+), 2 deletions(-)

diff --git 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 @@ -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 @@ -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);