Ver Fonte

mantis 1659

Christian Grothoff há 15 anos atrás
pai
commit
6abbeb5f40
3 ficheiros alterados com 5 adições e 2 exclusões
  1. 3 0
      ChangeLog
  2. 1 1
      doc/chapters/responseheaders.inc
  3. 1 1
      doc/examples/responseheaders.c

+ 3 - 0
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

+ 1 - 1
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);

+ 1 - 1
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);