uclient-http: fix seq field check to use correct field
authorFelix Fietkau <nbd@nbd.name>
Sat, 31 Jan 2026 13:45:03 +0000 (14:45 +0100)
committerFelix Fietkau <nbd@nbd.name>
Sat, 31 Jan 2026 13:46:15 +0000 (14:46 +0100)
commit9c2ad269c42bca917fc563c97c732d8c47fd1bfc
treede27b540a5c50e61ae91b1d0a313207126720cea
parentb3ee1209a3d09ef56073bf5c1f999d7281fa27fb
uclient-http: fix seq field check to use correct field

The code was checking uh->uc.seq for changes to detect redirects, but
only uh->seq is actually incremented (in uclient_http_init_request and
uclient_http_reset_state). This meant the redirect detection check was
always comparing against an unchanging value.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
uclient-http.c
uclient.h