aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/microhttpd.h2
-rw-r--r--src/microhttpd/response.c1
-rw-r--r--src/microhttpd/test_upgrade.c4
3 files changed, 6 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 0a7e4711..46a82625 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -2310,6 +2310,7 @@ MHD_upgrade_action (struct MHD_UpgradeResponseHandle *urh,
2310 * @param connection original HTTP connection handle, 2310 * @param connection original HTTP connection handle,
2311 * giving the function a last chance 2311 * giving the function a last chance
2312 * to inspect the original HTTP request 2312 * to inspect the original HTTP request
2313 * @param con_cls last value left in `con_cls` of the `MHD_AccessHandlerCallback`
2313 * @param extra_in if we happened to have read bytes after the 2314 * @param extra_in if we happened to have read bytes after the
2314 * HTTP header already (because the client sent 2315 * HTTP header already (because the client sent
2315 * more than the HTTP header of the request before 2316 * more than the HTTP header of the request before
@@ -2331,6 +2332,7 @@ MHD_upgrade_action (struct MHD_UpgradeResponseHandle *urh,
2331typedef void 2332typedef void
2332(*MHD_UpgradeHandler)(void *cls, 2333(*MHD_UpgradeHandler)(void *cls,
2333 struct MHD_Connection *connection, 2334 struct MHD_Connection *connection,
2335 void *con_cls,
2334 const char *extra_in, 2336 const char *extra_in,
2335 size_t extra_in_size, 2337 size_t extra_in_size,
2336 MHD_socket sock, 2338 MHD_socket sock,
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index fa45f5f5..9336aa91 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -702,6 +702,7 @@ MHD_response_execute_upgrade_ (struct MHD_Response *response,
702 connection->read_buffer_offset = 0; 702 connection->read_buffer_offset = 0;
703 response->upgrade_handler (response->upgrade_handler_cls, 703 response->upgrade_handler (response->upgrade_handler_cls,
704 connection, 704 connection,
705 connection->con_cls,
705 connection->read_buffer, 706 connection->read_buffer,
706 rbo, 707 rbo,
707 urh->app_socket, 708 urh->app_socket,
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c
index 5251c6bc..2288d927 100644
--- a/src/microhttpd/test_upgrade.c
+++ b/src/microhttpd/test_upgrade.c
@@ -177,6 +177,7 @@ recv_all (MHD_socket sock,
177 * @param connection original HTTP connection handle, 177 * @param connection original HTTP connection handle,
178 * giving the function a last chance 178 * giving the function a last chance
179 * to inspect the original HTTP request 179 * to inspect the original HTTP request
180 * @param con_cls last value left in `*con_cls` in the `MHD_AccessHandlerCallback`
180 * @param extra_in if we happened to have read bytes after the 181 * @param extra_in if we happened to have read bytes after the
181 * HTTP header already (because the client sent 182 * HTTP header already (because the client sent
182 * more than the HTTP header of the request before 183 * more than the HTTP header of the request before
@@ -192,12 +193,13 @@ recv_all (MHD_socket sock,
192 * may not work as expected (as the socket could be from a 193 * may not work as expected (as the socket could be from a
193 * socketpair() or a TCP-loopback) 194 * socketpair() or a TCP-loopback)
194 * @param urh argument for #MHD_upgrade_action()s on this @a connection. 195 * @param urh argument for #MHD_upgrade_action()s on this @a connection.
195 * Applications must eventually use this callback to perform the 196 * Applications must eventually use this function to perform the
196 * close() action on the @a sock. 197 * close() action on the @a sock.
197 */ 198 */
198static void 199static void
199upgrade_cb (void *cls, 200upgrade_cb (void *cls,
200 struct MHD_Connection *connection, 201 struct MHD_Connection *connection,
202 void *con_cls,
201 const char *extra_in, 203 const char *extra_in,
202 size_t extra_in_size, 204 size_t extra_in_size,
203 MHD_socket sock, 205 MHD_socket sock,