net/lwip: wget: put server_name and port into wget_ctx
authorAdriano Cordova <adrianox@gmail.com>
Mon, 11 Nov 2024 21:09:00 +0000 (18:09 -0300)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 16 Nov 2024 20:35:05 +0000 (21:35 +0100)
commit6cc4d0492b2fb231c163e3a06918be3cde381506
tree4b84359638a04d085fd05a2efd2ffc7207c2881b
parentde28a2a5f2ad93b156b39c2aee24cb5d01c7e619
net/lwip: wget: put server_name and port into wget_ctx

Currently server_name and port are local variables in wget_loop.
This commit puts them inside ctx, so that they are accessible
from the http callbacks.

Signed-off-by: Adriano Cordova <adrianox@gmail.com>
net/lwip/wget.c