uclient-http: properly handle HTTP redirects via proxy connections
authorJo-Philipp Wich <jo@mein.io>
Sat, 24 Nov 2018 18:54:07 +0000 (19:54 +0100)
committerJo-Philipp Wich <jo@mein.io>
Sat, 24 Nov 2018 18:54:07 +0000 (19:54 +0100)
commit3ba74ebc9363993ea2a83fd73b4c1b1a96e73940
treeb68b3fee8416527e200e0f10b5d213ba70378596
parentae1c656ff041c6f1ccb37b070fa261e0d71f2b12
uclient-http: properly handle HTTP redirects via proxy connections

When uclient connects via an HTTP proxy connection we need to swap the
contexts .proxy_url and not the .url property (which is the connection
URL to the proxy server itself).

This fixes uclient erroring out in a redirect loop when connecting via
a proxy connection.

Ref: https://forum.openwrt.org/t/opkg-update-fails/25813
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
uclient-http.c