Skip to content

Commit f9cc4ec

Browse files
committed
Fix print chunk
1 parent f4927dd commit f9cc4ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/shared/web_workflow/web_workflow.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ static void _send_chunk(socketpool_socket_obj_t *socket, const char *chunk) {
335335
}
336336

337337
STATIC void _print_chunk(void *env, const char *str, size_t len) {
338-
mp_print_t _socket_print = {socket, _print_raw};
338+
mp_print_t _socket_print = {env, _print_raw};
339339
mp_printf(&_socket_print, "%X\r\n", len);
340340
_send_raw((socketpool_socket_obj_t *)env, (const uint8_t *)str, len);
341341
_send_raw((socketpool_socket_obj_t *)env, (const uint8_t *)"\r\n", 2);

0 commit comments

Comments
 (0)