diff options
Diffstat (limited to 'src/microhttpd')
-rw-r--r-- | src/microhttpd/response.c | 1 | ||||
-rw-r--r-- | src/microhttpd/test_upgrade.c | 4 |
2 files changed, 4 insertions, 1 deletions
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 | */ |
198 | static void | 199 | static void |
199 | upgrade_cb (void *cls, | 200 | upgrade_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, |